783be14a5d
- minigraph_portchannel_interfaces and minigraph_vlan_interfaces are lists of interfaces and the name could duplicate due to multiple IPs - Add minigraph_portchannels and minigraph_vlans dictionaries to support querying port channels and vlans via the name - Update teamd.j2 template and config.sh file in docker-teamd - Update zebra.conf.j2 template to add port channel interfaces Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
21 lines
508 B
Django/Jinja
21 lines
508 B
Django/Jinja
{
|
|
"device": "{{ pc }}",
|
|
"runner": {
|
|
"name": "lacp",
|
|
"active": true,
|
|
{# Use 75% links upperbound as min-links #}
|
|
"min_ports": {{ minigraph_portchannels[pc]['members'] | length * 0.75 | round(0, 'ceil') | int}},
|
|
"tx_hash": ["eth", "ipv4", "ipv6"]
|
|
},
|
|
"link_watch": {
|
|
"name": "ethtool"
|
|
},
|
|
"ports": {
|
|
{% for member in minigraph_portchannels[pc]['members'] %}
|
|
"{{member}}": {}{% if not loop.last %},{% endif %}
|
|
|
|
{% endfor %}
|
|
}
|
|
}
|
|
|