diff --git a/CLI/renderer/templates/show_interface.j2 b/CLI/renderer/templates/show_interface.j2 index 8e50d6fc7..c45e13e9b 100644 --- a/CLI/renderer/templates/show_interface.j2 +++ b/CLI/renderer/templates/show_interface.j2 @@ -76,7 +76,7 @@ {% if vars.update({'ipv4_src_pfx':""}) %}{% endif %} {% if vars.update({'mode4':"not-set"}) %}{% endif %} {% endif %} - {% if subif["openconfig-if-ip:ipv6"] %} + {% if subif["openconfig-if-ip:ipv6"] and "addresses" in subif["openconfig-if-ip:ipv6"] %} {% set ip_list = subif["openconfig-if-ip:ipv6"]["addresses"]["address"] %} {% set ipv6_all = [] %} {% for ip in ip_list %} diff --git a/CLI/renderer/templates/show_interface_id.j2 b/CLI/renderer/templates/show_interface_id.j2 index b4b4b32ee..5d29fc87f 100644 --- a/CLI/renderer/templates/show_interface_id.j2 +++ b/CLI/renderer/templates/show_interface_id.j2 @@ -73,7 +73,7 @@ {% else %} {% if vars.update({'mode4':"not-set"}) %}{% endif %} {% endif %} - {% if subif["openconfig-if-ip:ipv6"] %} + {% if subif["openconfig-if-ip:ipv6"] and "addresses" in subif["openconfig-if-ip:ipv6"] %} {% set ip_list = subif["openconfig-if-ip:ipv6"]["addresses"]["address"] %} {% set ipv6_all = [] %} {% for ip in ip_list %}