diff --git a/src/usr/lib/ztp/templates/ztp-config.j2 b/src/usr/lib/ztp/templates/ztp-config.j2 index b8f7d95..3c2cdac 100644 --- a/src/usr/lib/ztp/templates/ztp-config.j2 +++ b/src/usr/lib/ztp/templates/ztp-config.j2 @@ -1,4 +1,15 @@ { +{% if BREAKOUT_CFG %} + "BREAKOUT_CFG": { +{%- for intf in BREAKOUT_CFG -%} + "{{intf}}": { +{% if BREAKOUT_CFG[intf].brkout_mode is defined and BREAKOUT_CFG[intf].brkout_mode != "" %} + "brkout_mode": "{{ BREAKOUT_CFG[intf].brkout_mode }}" +{% endif %} + }{%- if loop.last == False -%},{% endif %} +{%- endfor %} + }, +{% endif %} "DEVICE_METADATA": { "localhost" : { "hwsku" : "{{ DEVICE_METADATA.localhost.hwsku }}",