summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@sentrium.io>2020-01-30 13:49:26 -0600
committerJohn Estabrook <jestabro@sentrium.io>2020-01-30 13:49:26 -0600
commitc291d18377eb6eea6693050c338b0392e1297e74 (patch)
tree8420841086afe549985204f91970c265dddeec3f /src/op_mode
parentd738b1c5fbb9180f3f5292195b6e215b9162a202 (diff)
downloadvyos-1x-c291d18377eb6eea6693050c338b0392e1297e74.tar.gz
vyos-1x-c291d18377eb6eea6693050c338b0392e1297e74.zip
snmp: T1575: Fix typo
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/snmp_ifmib.py4
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)