Fix radv.conf traceback when VLAN_INTERFACE is not defined (#12034)

*Fix the if block scope to prevent traceback due to undefined vlan_list when  VLAN_INTERFACE is not defined.
This commit is contained in:
anamehra 2022-09-09 12:54:05 -07:00 committed by Ying Xie
parent a98b34af29
commit ab0edff4cb

View File

@ -23,7 +23,6 @@
{% set _ = vlan_list.update({name: prefix_list}) %}
{% endif %}
{% endfor %}
{% endif %}
{% for name, prefixes in vlan_list.items() %}
interface {{ name }}
{
@ -47,3 +46,4 @@ interface {{ name }}
};
{% endfor %}
{% endif %}