Git Product home page Git Product logo

giraphe's Issues

Problem: Crashes when "?" occurs in SNMP table output

  • Code assumes "?" will never appear as destination or nexthop in routes.
  • Missing destination/nexthop appears when route churn is present.

Crash Output

** (Protocol.UndefinedError) protocol NetAddr.Representation not implemented for {:error, :einval}. This protocol is implemented for: NetAddr.Generic, NetAddr.IPv4, NetAddr.IPv6, NetAddr.MAC_48
    (netaddr_ex) deps/netaddr_ex/lib/netaddr.ex:842: NetAddr.Representation.impl_for!/1
    (netaddr_ex) deps/netaddr_ex/lib/netaddr.ex:844: NetAddr.Representation.address/2
    (giraphe) lib/giraphe/discover/l3.ex:22: anonymous fn/2 in Giraphe.Discover.L3.any_similar_address?/2
    (elixir) lib/enum.ex:2786: Enum.any_list/2
    (giraphe) lib/giraphe/discover/l3.ex:127: anonymous fn/3 in Giraphe.Discover.L3._discover/2
    (elixir) lib/enum.ex:2857: Enum.filter_list/2
    (giraphe) lib/giraphe/discover/l3.ex:126: Giraphe.Discover.L3._discover/2
    (giraphe) lib/giraphe/discover/l3.ex:167: Giraphe.Discover.L3.discover/1

SNMP Output

[%{age: "14", dest: "10.100.11.0", ifindex: "0",
   index: "[10.100.11.0][255.255.255.252][0][10.100.1.2]", info: "?",
   mask: "255.255.255.252", metric1: "?", metric2: "?", metric3: "?",
   metric4: "?", metric5: "?", nexthop: "10.100.1.2", nexthopas: "?",
   proto: "14", status: "?", tos: "0", type: "4"},
 %{age: "?", dest: "?", ifindex: "?",
   index: "[10.100.11.0][255.255.255.252][0][10.1.1.2]",
   info: "SNMPv2-SMI::zeroDotZero", mask: "?", metric1: "0", metric2: "?",
   metric3: "?", metric4: "?", metric5: "?", nexthop: "?", nexthopas: "0",
   proto: "?", status: "?", tos: "?", type: "?"}]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.