2017-01-19 22:56:26 -06:00
|
|
|
{
|
|
|
|
"device": "{{ pc }}",
|
|
|
|
"runner": {
|
|
|
|
"name": "lacp",
|
|
|
|
"active": true,
|
2017-01-30 19:33:03 -06:00
|
|
|
{# Use 75% links upperbound as min-links #}
|
2017-03-17 18:48:13 -05:00
|
|
|
"min_ports": {{ minigraph_portchannels[pc]['members'] | length * 0.75 | round(0, 'ceil') | int}},
|
2017-01-19 22:56:26 -06:00
|
|
|
"tx_hash": ["eth", "ipv4", "ipv6"]
|
|
|
|
},
|
|
|
|
"link_watch": {
|
|
|
|
"name": "ethtool"
|
|
|
|
},
|
|
|
|
"ports": {
|
2017-03-17 18:48:13 -05:00
|
|
|
{% for member in minigraph_portchannels[pc]['members'] %}
|
2017-01-19 22:56:26 -06:00
|
|
|
"{{member}}": {}{% if not loop.last %},{% endif %}
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|