diff options
Diffstat (limited to 'src/op_mode')
-rwxr-xr-x | src/op_mode/snmp_ifmib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/snmp_ifmib.py b/src/op_mode/snmp_ifmib.py index 180892694..3a0e0d4b2 100755 --- a/src/op_mode/snmp_ifmib.py +++ b/src/op_mode/snmp_ifmib.py @@ -82,10 +82,10 @@ def show_ifdescr(i): # convert output to string string = out.decode("utf-8").split('"') - if len(string) >= 3: + if len(string) > 3: vendor = string[3] - if len(string) >= 5: + if len(string) > 5: device = string[5] ret = 'ifDescr = {0} {1}'.format(vendor, device) |