summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/bond.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-31 07:05:47 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-31 07:05:47 +0200
commit7e9266025d97bd51a6a413af8bd7f3f65ea9a65d (patch)
treedc55b39fbc29b6ec636237d2e85f7aead9f4b78b /python/vyos/ifconfig/bond.py
parent7beaf8fc7ff86213737202b9cd74e6a0f538297b (diff)
downloadvyos-1x-7e9266025d97bd51a6a413af8bd7f3f65ea9a65d.tar.gz
vyos-1x-7e9266025d97bd51a6a413af8bd7f3f65ea9a65d.zip
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.
Diffstat (limited to 'python/vyos/ifconfig/bond.py')
-rw-r--r--python/vyos/ifconfig/bond.py2
1 files changed, 1 insertions, 1 deletions
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'