Skip to content

Commit

Permalink
Fix the network command for ipv6 vlan interfaces (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenggen-xu authored and lguohan committed Aug 17, 2017
1 parent 1be1c46 commit c52e876
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dockers/docker-fpm-quagga/bgpd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
{% endif %}
{% block vlan_advertisement %}
{% for vlan_interface in minigraph_vlan_interfaces %}
{% if vlan_interface['addr'] | ipv4 %}
network {{ vlan_interface['subnet'] }}
{% elif vlan_interface['addr'] | ipv6 %}
address-family ipv6
network {{ vlan_interface['subnet'] }}
exit-address-family
{% endif %}
{% endfor %}
{% endblock vlan_advertisement %}
{% block bgp_sessions %}
Expand Down

0 comments on commit c52e876

Please sign in to comment.