Fix the network command for ipv6 vlan interfaces (#894)

This commit is contained in:
zhenggen-xu 2017-08-16 21:12:32 -07:00 committed by lguohan
parent 1be1c466fe
commit c52e876697

View File

@ -46,7 +46,13 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
{% endif %} {% endif %}
{% block vlan_advertisement %} {% block vlan_advertisement %}
{% for vlan_interface in minigraph_vlan_interfaces %} {% for vlan_interface in minigraph_vlan_interfaces %}
{% if vlan_interface['addr'] | ipv4 %}
network {{ vlan_interface['subnet'] }} network {{ vlan_interface['subnet'] }}
{% elif vlan_interface['addr'] | ipv6 %}
address-family ipv6
network {{ vlan_interface['subnet'] }}
exit-address-family
{% endif %}
{% endfor %} {% endfor %}
{% endblock vlan_advertisement %} {% endblock vlan_advertisement %}
{% block bgp_sessions %} {% block bgp_sessions %}