4fe1bdcf87
Add a sonic-config-engine to help generate config file based on minigraph and other data on runtime. Modify fpm, teamd, lldp, snmp, and platform-monitor docker to use sonic-config-engine to generate config in docker upon load.
20 lines
381 B
Django/Jinja
20 lines
381 B
Django/Jinja
{
|
|
"device": "{{ pc }}",
|
|
"runner": {
|
|
"name": "lacp",
|
|
"active": true,
|
|
"min_ports": 2,
|
|
"tx_hash": ["eth", "ipv4", "ipv6"]
|
|
},
|
|
"link_watch": {
|
|
"name": "ethtool"
|
|
},
|
|
"ports": {
|
|
{% for member in minigraph_portchannel_interfaces[pc] %}
|
|
"{{member}}": {}{% if not loop.last %},{% endif %}
|
|
|
|
{% endfor %}
|
|
}
|
|
}
|
|
|