From e1c993f57efdf91f26a36f1d0339298e63fdf20e Mon Sep 17 00:00:00 2001 From: sever-sever Date: Tue, 2 Mar 2021 15:09:45 +0000 Subject: op-mode: T3357: Fix show_interfaces bug with tunnels --- src/op_mode/show_interfaces.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/op_mode/show_interfaces.py') 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 -- cgit v1.2.3