Skip to content

Commit

Permalink
Add role field to the ztp PORT config (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekrnv authored Jul 18, 2024
1 parent 56cebae commit b4cdd8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/usr/lib/ztp/templates/ztp-config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
{% if PORT[port].fec is defined and PORT[port].fec != "" %}
"fec": "{{ PORT[port].fec }}",
{% endif %}
{% if PORT[port].role is defined and PORT[port].role != "" %}
"role": "{{ PORT[port].role }}",
{% endif %}
{% if ZTP_INBAND == "true" %}
"admin_status": "up"
{% else %}
Expand Down

0 comments on commit b4cdd8c

Please sign in to comment.