summaryrefslogtreecommitdiff
path: root/src/conf_mode/interface-bonding.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-24 19:27:54 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-24 21:53:26 +0200
commitf95659216b0816f53bdf5cb8ccc02afff970dd53 (patch)
tree0ba646af17b6e41e2f7cdea08f4bd118b219abcc /src/conf_mode/interface-bonding.py
parentbc9b28132ca7270f226968d0c1207adefe768049 (diff)
downloadvyos-1x-f95659216b0816f53bdf5cb8ccc02afff970dd53.tar.gz
vyos-1x-f95659216b0816f53bdf5cb8ccc02afff970dd53.zip
Python/ifconfig: T1557: refactor BondIf 'mode' property to set_mode()
Diffstat (limited to 'src/conf_mode/interface-bonding.py')
-rwxr-xr-xsrc/conf_mode/interface-bonding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interface-bonding.py b/src/conf_mode/interface-bonding.py
index 6092d0732..4d5009c73 100755
--- a/src/conf_mode/interface-bonding.py
+++ b/src/conf_mode/interface-bonding.py
@@ -388,7 +388,7 @@ def apply(bond):
b.set_mac(bond['mac'])
# Bonding policy
- b.mode = bond['mode']
+ b.set_mode(bond['mode'])
# Maximum Transmission Unit (MTU)
b.set_mtu(bond['mtu'])