teamd: Use 75% links upperbound as min-links (#224)

This commit is contained in:
Taoyu Li 2017-01-30 17:33:03 -08:00 committed by GitHub
parent 4e3bbc8e13
commit be8ed80554

View File

@ -3,7 +3,8 @@
"runner": { "runner": {
"name": "lacp", "name": "lacp",
"active": true, "active": true,
"min_ports": 2, {# Use 75% links upperbound as min-links #}
"min_ports": {{ minigraph_portchannel_interfaces[pc] | length * 0.75 | round(0, 'ceil') | int}},
"tx_hash": ["eth", "ipv4", "ipv6"] "tx_hash": ["eth", "ipv4", "ipv6"]
}, },
"link_watch": { "link_watch": {