summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-02 16:57:27 +0100
committerGitHub <noreply@github.com>2021-03-02 16:57:27 +0100
commit585112ca7a93d26d54442bb827688f24c5c2fa38 (patch)
treef480a65d1a89080227f790e03ec8243c239d9265
parentecd936a0189e7f785929a585cd190cbbf3bc4c1b (diff)
parente1c993f57efdf91f26a36f1d0339298e63fdf20e (diff)
downloadvyos-1x-585112ca7a93d26d54442bb827688f24c5c2fa38.tar.gz
vyos-1x-585112ca7a93d26d54442bb827688f24c5c2fa38.zip
Merge pull request #757 from sever-sever/T3357
op-mode: T3357: Fix show_interfaces bug with tunnels
-rwxr-xr-xsrc/op_mode/show_interfaces.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/op_mode/show_interfaces.py b/src/op_mode/show_interfaces.py
index 256c86d2a..5375a8406 100755
--- a/src/op_mode/show_interfaces.py
+++ b/src/op_mode/show_interfaces.py
@@ -71,10 +71,7 @@ def filtered_interfaces(ifnames, iftypes, vif, vrrp):
if ifnames and ifname not in ifnames:
continue
- # return the class which can handle this interface name
- klass = Section.klass(ifname)
- # connect to the interface
- interface = klass(ifname, create=False, debug=False)
+ interface = Interface(ifname)
if iftypes and interface.definition['section'] not in iftypes:
continue