summaryrefslogtreecommitdiff
path: root/src/conf_mode/interface-bonding.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-24 18:10:39 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-24 18:11:49 +0200
commitd80398b6542b24042961ff6eae657c58c98d93c3 (patch)
tree66fb3964a744694391b99d0b7d46378ec5be8819 /src/conf_mode/interface-bonding.py
parentd77f68ef3198cff019e1e2d74dfe2290800a1ea6 (diff)
downloadvyos-1x-d80398b6542b24042961ff6eae657c58c98d93c3.tar.gz
vyos-1x-d80398b6542b24042961ff6eae657c58c98d93c3.zip
Python/ifconfig: T1557: refactor 'mac' property to set_mac()
Diffstat (limited to 'src/conf_mode/interface-bonding.py')
-rwxr-xr-xsrc/conf_mode/interface-bonding.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interface-bonding.py b/src/conf_mode/interface-bonding.py
index 4a91619f1..fddc73b0f 100755
--- a/src/conf_mode/interface-bonding.py
+++ b/src/conf_mode/interface-bonding.py
@@ -91,7 +91,7 @@ def apply_vlan_config(vlan, config):
vlan.set_mtu(config['mtu'])
# Change VLAN interface MAC address
if config['mac']:
- vlan.mac = config['mac']
+ vlan.set_mac(config['mac'])
# enable/disable VLAN interface
if config['disable']:
@@ -388,7 +388,7 @@ def apply(bond):
# Change interface MAC address
if bond['mac']:
- b.mac = bond['mac']
+ b.set_mac(bond['mac'])
# Bonding policy
b.mode = bond['mode']