summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-24 18:15:01 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-24 18:15:01 +0200
commit1e373c5ea5a8ac6a5a4f99376d6399b82df00efa (patch)
tree0fc8e3d1247a4fdd150e1c3a0d310a2a0316a822 /src
parentd80398b6542b24042961ff6eae657c58c98d93c3 (diff)
downloadvyos-1x-1e373c5ea5a8ac6a5a4f99376d6399b82df00efa.tar.gz
vyos-1x-1e373c5ea5a8ac6a5a4f99376d6399b82df00efa.zip
Python/ifconfig: T1557: refactor BondIf 'primary' property to set_primary()
Diffstat (limited to 'src')
-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 fddc73b0f..83cd2facc 100755
--- a/src/conf_mode/interface-bonding.py
+++ b/src/conf_mode/interface-bonding.py
@@ -397,7 +397,7 @@ def apply(bond):
# Primary device interface
if bond['primary']:
- b.primary = bond['primary']
+ b.set_primary(bond['primary'])
# Add (enslave) interfaces to bond
for intf in bond['member']: