-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dual stack BGP breaks InetAddress #586
Comments
This is a device bug, the InetAddress index is lacking the index size as required by section 4.1 of RFC 4001. Try overriding it with the InetAddressMissingSize type. |
@brian-brazil would care to show how you mean, just for the sake of it?
I tried it out and it works great overriding with InetAddressMissingSize.
|
From RFC 4001 section 4.1
Interestingly, it seems like the MIB (BGP4-V2-MIB-JUNIPER) has the correct INDEX syntax.
|
That's the one.
It's the 2nd paragraph, the device is violating the RFC by not sending the number of octets. This is a bug which should be reported to the vendor. |
Oh, I see, yes, the IP entries are missing the "N" length field. |
It's reported to vendor. |
Closing as there's nothing for us to do here, and we already have a workaround for this class of vendor bug. |
Host operating system: output of
uname -a
Linux remote-control 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux
snmp_exporter version: output of
snmp_exporter -version
0.19.0
What device/snmpwalk OID are you using?
Juniper MX204 / 1.3.6.1.4.1.2636.5.1.1.2.1.1.1.14
If this is a new device, please link to the MIB(s).
What did you do that produced an error?
Because InetAddress is not properly detected and gets scrambled.
What did you expect to see?
A proper IPv4 and IPv6
What did you see instead?
Scrambled data
What I tried
If I force the type of RemoteAddr to InetAddressIPv4 and InetAddressIPv6 depending on InetAddressType (1.3.6.1.4.1.2636.5.1.1.2.1.1.1.14.0.{1,2}), it all works out ok, well at least for the addresses.
The text was updated successfully, but these errors were encountered: