summaryrefslogtreecommitdiff
path: root/src/conf_mode/interface-bridge.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-24 18:26:28 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-24 21:53:25 +0200
commit2f458f5efbd95640780554cc83fb54ec790bd4cc (patch)
treeaa20be6c048a30e02cb086fb198c4d7615d23940 /src/conf_mode/interface-bridge.py
parent839058e95311ed6ee08f96a943c271dbf77320ed (diff)
downloadvyos-1x-2f458f5efbd95640780554cc83fb54ec790bd4cc.tar.gz
vyos-1x-2f458f5efbd95640780554cc83fb54ec790bd4cc.zip
Python/ifconfig: T1557: refactor BridgeIf 'priority' property to set_priority()
Diffstat (limited to 'src/conf_mode/interface-bridge.py')
-rwxr-xr-xsrc/conf_mode/interface-bridge.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conf_mode/interface-bridge.py b/src/conf_mode/interface-bridge.py
index 3b18e24ab..b120ac663 100755
--- a/src/conf_mode/interface-bridge.py
+++ b/src/conf_mode/interface-bridge.py
@@ -195,7 +195,7 @@ def apply(bridge):
# set max message age
br.set_max_age(bridge['max_age'])
# set bridge priority
- br.priority = bridge['priority']
+ br.set_priority(bridge['priority'])
# turn stp on/off
br.stp_state = bridge['stp']
# enable or disable IGMP querier
@@ -229,10 +229,10 @@ def apply(bridge):
# configure additional bridge member options
for member in bridge['member']:
- # set bridge port cost
- br.set_cost(member['name'], member['cost'])
- # set bridge port priority
- br.set_priority(member['name'], member['priority'])
+ # set bridge port path cost
+ br.set_path_cost(member['name'], member['cost'])
+ # set bridge port path priority
+ br.set_path_priority(member['name'], member['priority'])
i = Interface(member['name'])
# configure ARP cache timeout