Commit 6185bd1e authored by Kirk Webb's avatar Kirk Webb
Browse files

Fix openflow support test in snmpit_hp module

Perl's SNMP library returns no error, but sets the return value to
"NOSUCHOBJECT" when an invalid OID is queried.  That must have changed
at some point after the test in snmpit_hp was written. So, compensate.
parent 38d6d20a
......@@ -2182,7 +2182,7 @@ sub isOpenflowSupported($) {
my $ret;
$ret = $self->get1($ofSupportOID, 0);
if (defined($ret)) {
if (defined($ret) && $ret ne 'NOSUCHOBJECT') {
return 1;
} else {
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment