[c-nsp] ios-xr asr9k ipv6IfAdminStatus does return next instance if it does not exist
Florian Lohoff
f at zz.de
Tue Dec 16 04:28:26 EST 2014
After digging into this a bit more
On Tue, Dec 16, 2014 at 05:40:43AM +0100, Florian Lohoff wrote:
>
> Hi,
> did anyone see something like this?
>
> $ snmpget -c public -v 2c asr9k-corerouter ipv6IfAdminStatus.77
> IPV6-MIB::ipv6IfAdminStatus.79 = INTEGER: up(1)
>
> Asking for instance .77 and get .79.
It seems this is a clear violation of the SNMPv2 RFC 1905
RFC1905 4.2.1. The GetRequest-PDU
[ ... ]
(1) If the variable binding's name exactly matches the name of a
variable accessible by this request, then the variable binding's
value field is set to the value of the named variable.
(2) Otherwise, if the variable binding's name does not have an OBJECT
IDENTIFIER prefix which exactly matches the OBJECT IDENTIFIER
prefix of any (potential) variable accessible by this request, then
its value field is set to `noSuchObject'.
(3) Otherwise, the variable binding's value field is set to
`noSuchInstance'.
So it should return with `noSuchInstance' not some other random interfaces
IPv6 status.
Flo
--
Florian Lohoff f at zz.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://puck.nether.net/pipermail/cisco-nsp/attachments/20141216/59918df7/attachment.sig>
More information about the cisco-nsp
mailing list