Skip to content

Commit

Permalink
Properly pull vlan subnet from minigraph when writing bgpd.conf (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
taoyl-ms authored Feb 13, 2017
1 parent 0a6565d commit ecc9f0c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dockers/docker-fpm/bgpd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ router bgp {{ minigraph_bgp_asn }}
{% endfor %}
{% endblock bgp_init %}
{% block vlan_advertisement %}
{% for interface in minigraph_interfaces %}
{% if interface['name'].startswith('Vlan') %}
network {{ interface['subnet'] }}
{% endif %}
{% for vlan_interface in minigraph_vlan_interfaces %}
network {{ vlan_interface['subnet'] }}
{% endfor %}
{% endblock vlan_advertisement %}
{% block bgp_sessions %}
Expand Down

0 comments on commit ecc9f0c

Please sign in to comment.