summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-07-21 18:59:16 +0700
committerGitHub <noreply@github.com>2020-07-21 18:59:16 +0700
commit12235d1a83988d63c933d4bf69127b0405592485 (patch)
treee501fd980d6cc1ad54482ddabf53c205a8e45d0d /src/op_mode
parente742ea07e625049895a0d77c3aee1d33b1eae968 (diff)
parentfd9463f6f90242a870665a143a553455e20ab315 (diff)
downloadvyos-1x-12235d1a83988d63c933d4bf69127b0405592485.tar.gz
vyos-1x-12235d1a83988d63c933d4bf69127b0405592485.zip
Merge pull request #512 from sever-sever/T2658
interfaces: T2658: Fix description length
Diffstat (limited to 'src/op_mode')
-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 ''