summaryrefslogtreecommitdiff
path: root/src/op_mode/show_interfaces.py
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-07-21 11:47:40 +0000
committersever-sever <v.gletenko@vyos.io>2020-07-21 11:47:40 +0000
commitfd9463f6f90242a870665a143a553455e20ab315 (patch)
treee501fd980d6cc1ad54482ddabf53c205a8e45d0d /src/op_mode/show_interfaces.py
parente742ea07e625049895a0d77c3aee1d33b1eae968 (diff)
downloadvyos-1x-fd9463f6f90242a870665a143a553455e20ab315.tar.gz
vyos-1x-fd9463f6f90242a870665a143a553455e20ab315.zip
interfaces: T2658: Fix description length
Diffstat (limited to 'src/op_mode/show_interfaces.py')
-rwxr-xr-xsrc/op_mode/show_interfaces.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/op_mode/show_interfaces.py b/src/op_mode/show_interfaces.py
index 46571c0c0..d4dae3cd1 100755
--- a/src/op_mode/show_interfaces.py
+++ b/src/op_mode/show_interfaces.py
@@ -220,8 +220,7 @@ def run_show_intf_brief(ifnames, iftypes, vif, vrrp):
oper = ['u', ] if oper_state in ('up', 'unknown') else ['A', ]
admin = ['u', ] if oper_state in ('up', 'unknown') else ['D', ]
addrs = [_ for _ in interface.get_addr() if not _.startswith('fe80::')] or ['-', ]
- # do not ask me why 56, it was the number in the perl code ...
- descs = list(split_text(interface.get_alias(),56))
+ descs = list(split_text(interface.get_alias(),0))
while intf or oper or admin or addrs or descs:
i = intf.pop(0) if intf else ''