Skip to content

Commit 127a73a

Browse files
authored
[quagga]: Disable ipv4 over ipv6 and enable ipv6 over ipv4 peer group (#922)
* [bgpd]:disable ipv4 over ipv6 and enable ipv6 over ipv4 peer group * update as comments
1 parent 1a4f039 commit 127a73a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

dockers/docker-fpm-quagga/bgpd.conf.j2

+14-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ route-map TO_BGP_SPEAKER_V4 deny 10
2626
router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
2727
bgp log-neighbor-changes
2828
bgp bestpath as-path multipath-relax
29+
no bgp default ipv4-unicast
2930
{# Advertise graceful restart capability for ToR #}
3031
{% if minigraph_devices[inventory_hostname]['type'] == 'ToRRouter' %}
3132
bgp graceful-restart
@@ -64,9 +65,13 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
6465
neighbor {{ neighbor_addr }} shutdown
6566
{% endif %}
6667
{% if neighbor_addr | ipv4 %}
68+
address-family ipv4
6769
{% if minigraph_devices[inventory_hostname]['type'] == 'ToRRouter' %}
68-
neighbor {{ neighbor_addr }} allowas-in 1
70+
neighbor {{ neighbor_addr }} allowas-in 1
6971
{% endif %}
72+
neighbor {{ neighbor_addr }} activate
73+
maximum-paths 64
74+
exit-address-family
7075
{% endif %}
7176
{% if neighbor_addr | ipv6 %}
7277
address-family ipv6
@@ -93,6 +98,14 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
9398
{% for ip_range in bgp_peer['ip_range'] %}
9499
bgp listen range {{ip_range}} peer-group {{ bgp_peer['name'] }}
95100
{% endfor %}
101+
address-family ipv4
102+
neighbor {{ bgp_peer['name'] }} activate
103+
maximum-paths 64
104+
exit-address-family
105+
address-family ipv6
106+
neighbor {{ bgp_peer['name'] }} activate
107+
maximum-paths 64
108+
exit-address-family
96109
{% endfor %}
97110
{% endblock bgp_peers_with_range %}
98111
!

0 commit comments

Comments
 (0)