You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*** Settings ***
Library SnmpLibrary
*** Test Cases ***
SNMP GET
${connect status} = Open Snmp V2c Connection 127.0.0.1 public
${value}= Get SNMPv2-MIB::sysDescr 0
This test fails with following error: ValueError: need more than 1 value to unpack
*** Settings ***
Library SnmpLibrary
*** Test Cases ***
SNMP GET
${connect status} = Open Snmp V2c Connection 127.0.0.1 public
${value}= Get SNMPv2-MIB::sysDescr.0
And here error: Object with OID .1.3.6.1.2.1.1.1.0.0 not found
we changed the interface lately so it accepts an index which defaults to
(0,). And I guess this isnt working with OID names. FYI we are just
using numerical OIDs here. doh!
Try the following as a possible workaround until the bug is fixed:
Hello,
Sorry for my rude language :)
Here test:
This test fails with following error:
ValueError: need more than 1 value to unpack
I use pdb and see, what test fail here:
sym, suffixes = sym.split('.', 1)
https://github.com/kontron/robotframework-snmplibrary/blob/master/src/SnmpLibrary/utils.py#L41
Because sym is - sysDescr and have no dots.
Okaaay, i change test to this:
And here error:
Object with OID .1.3.6.1.2.1.1.1.0.0 not found
Because idx alredy in SNMPv2-MIB::sysDescr.0, but here: https://github.com/kontron/robotframework-snmplibrary/blob/master/src/SnmpLibrary/library.py#L243
idx added again.
WAT? о_О
The text was updated successfully, but these errors were encountered: