From 2eab81070c5819dd6252a37bf74511b87a57368d Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 7 Mar 2021 10:04:59 +0100 Subject: Revert "op-mode: T3357: Fix show_interfaces bug with tunnels" This reverts commit e1c993f57efdf91f26a36f1d0339298e63fdf20e. --- src/op_mode/show_interfaces.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/op_mode') 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 -- cgit v1.2.3