From b4cdd8c58bc419f37b91e783b357bff4c5174536 Mon Sep 17 00:00:00 2001 From: Vivek Date: Wed, 17 Jul 2024 21:08:49 -0600 Subject: [PATCH] Add role field to the ztp PORT config (#57) --- src/usr/lib/ztp/templates/ztp-config.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/usr/lib/ztp/templates/ztp-config.j2 b/src/usr/lib/ztp/templates/ztp-config.j2 index 75b89fa..40fd1e0 100644 --- a/src/usr/lib/ztp/templates/ztp-config.j2 +++ b/src/usr/lib/ztp/templates/ztp-config.j2 @@ -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 %}