diff options
author | John Estabrook <jestabro@sentrium.io> | 2020-01-30 13:49:26 -0600 |
---|---|---|
committer | John Estabrook <jestabro@sentrium.io> | 2020-01-30 13:49:26 -0600 |
commit | c291d18377eb6eea6693050c338b0392e1297e74 (patch) | |
tree | 8420841086afe549985204f91970c265dddeec3f | |
parent | d738b1c5fbb9180f3f5292195b6e215b9162a202 (diff) | |
download | vyos-1x-c291d18377eb6eea6693050c338b0392e1297e74.tar.gz vyos-1x-c291d18377eb6eea6693050c338b0392e1297e74.zip |
snmp: T1575: Fix typo
-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) |