From 7e9266025d97bd51a6a413af8bd7f3f65ea9a65d Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 31 Jul 2020 07:05:47 +0200 Subject: ifconfig: T2653: bugfix on wrong flush_addr API Commit 29dd5079 ("ifconfig: T2653: remove duplicated code for address flush") used the class method for address flushing, but it was cvalled in the wrong way. --- python/vyos/ifconfig/bond.py | 2 +- python/vyos/ifconfig/bridge.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'python/vyos') diff --git a/python/vyos/ifconfig/bond.py b/python/vyos/ifconfig/bond.py index 5c9a43c9b..193cea321 100644 --- a/python/vyos/ifconfig/bond.py +++ b/python/vyos/ifconfig/bond.py @@ -365,7 +365,7 @@ class BondIf(Interface): # if we've come here we already verified the interface # does not have an addresses configured so just flush # any remaining ones - self.flush_addrs(interface) + Interface(interface).flush_addrs() self.add_port(interface) # Primary device interface - must be set after 'mode' diff --git a/python/vyos/ifconfig/bridge.py b/python/vyos/ifconfig/bridge.py index e4ae0a80a..466e6b682 100644 --- a/python/vyos/ifconfig/bridge.py +++ b/python/vyos/ifconfig/bridge.py @@ -240,7 +240,7 @@ class BridgeIf(Interface): # if we've come here we already verified the interface # does not have an addresses configured so just flush # any remaining ones - self.flush_addrs(interface) + Interface(interface).flush_addrs() # enslave interface port to bridge self.add_port(interface) -- cgit v1.2.3