{ "DEVICE_METADATA": { "localhost": { "mac": "{{ system_mac }}", "buffer_model": "traditional" } }, {% set features = ["swss", "bgp", "teamd", "nat", "database"] %} "FEATURE": { {% for feature in features %} "{{ feature }}": { "state": "enabled" }{% if not loop.last %},{% endif %} {% endfor %} } }