summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-07 10:04:59 +0100
committerChristian Poessinger <christian@poessinger.com>2021-03-07 10:04:59 +0100
commit2eab81070c5819dd6252a37bf74511b87a57368d (patch)
treec52c13a22a975cfdf7d1ca80d2816e98d67b544f
parent8e13cbd8439e91b91197dfe37b5e38203e2cb135 (diff)
downloadvyos-1x-2eab81070c5819dd6252a37bf74511b87a57368d.tar.gz
vyos-1x-2eab81070c5819dd6252a37bf74511b87a57368d.zip
Revert "op-mode: T3357: Fix show_interfaces bug with tunnels"
This reverts commit e1c993f57efdf91f26a36f1d0339298e63fdf20e.
-rwxr-xr-xsrc/op_mode/show_interfaces.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/op_mode/show_interfaces.py b/src/op_mode/show_interfaces.py
index ebeca3fc8..39e5dc7ac 100755
--- a/src/op_mode/show_interfaces.py
+++ b/src/op_mode/show_interfaces.py
@@ -71,7 +71,10 @@ def filtered_interfaces(ifnames, iftypes, vif, vrrp):
if ifnames and ifname not in ifnames:
continue
- interface = Interface(ifname)
+ # return the class which can handle this interface name
+ klass = Section.klass(ifname)
+ # connect to the interface
+ interface = klass(ifname, create=False, debug=False)
if iftypes and interface.definition['section'] not in iftypes:
continue