[c-nsp] ios-xr asr9k ipv6IfAdminStatus does return next instance if it does not exist

Jared Mauch jared at puck.Nether.net
Tue Dec 16 12:23:11 EST 2014


On Tue, Dec 16, 2014 at 10:28:26AM +0100, Florian Lohoff wrote:
> 
> 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.

	Did you report the issue to Cisco so they can fix this?

	We've ended up building a regression suite to test the SNMP stack of any
new release that checks for these types of defects.

	- Jared

-- 
Jared Mauch  | pgp key available via finger from jared at puck.nether.net
clue++;      | http://puck.nether.net/~jared/  My statements are only mine.


More information about the cisco-nsp mailing list