sonic-buildimage/platform/vs/docker-sonic-vs/init_cfg.json.j2

22 lines
816 B
Plaintext
Raw Normal View History

{
"DEVICE_METADATA": {
"localhost": {
"mac": "{{ system_mac }}",
"switch_type": "{{ switch_type }}",
"buffer_model": "traditional"
}
},
{% if switch_type != "dpu" %}
{% set features = ({"swss": "enabled", "bgp": "enabled", "teamd": "enabled", "nat": "enabled", "database": "enabled", "lldp": "enabled", "dhcp_relay": "enabled", "macsec": "enabled"}) %}
{% else %}
{% set features = ({"swss": "enabled", "bgp": "enabled", "teamd": "disabled", "nat": "disabled", "database": "enabled", "lldp": "enabled", "dhcp_relay": "disabled", "macsec": "disabled"}) %}
{% endif %}
"FEATURE": {
{% for feature, state in features.items() %}
"{{ feature }}": {
"state": "{{ state }}"
}{% if not loop.last %},{% endif %}
{% endfor %}
}
}