From c291d18377eb6eea6693050c338b0392e1297e74 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 30 Jan 2020 13:49:26 -0600 Subject: snmp: T1575: Fix typo --- src/op_mode/snmp_ifmib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3