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 GitHub
parent a226239439
commit 714b1807b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 %}