Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bgp]: Fix isolate/unisolate command for ipv6 peers #3183

Merged
merged 9 commits into from
Jul 18, 2019
Merged
6 changes: 6 additions & 0 deletions dockers/docker-fpm-frr/isolate.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ exit $?
configure terminal
router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
{% for neighbor_addr in BGP_NEIGHBOR %}
{% if neighbor_addr | ipv4 %}
neighbor {{ neighbor_addr }} route-map ISOLATE out
{% else %}
address-family ipv6
neighbor {{ neighbor_addr }} route-map ISOLATE out
exit-address-family
{% endif %}
{% endfor %}
exit
exit
Expand Down
6 changes: 6 additions & 0 deletions dockers/docker-fpm-frr/unisolate.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ exit $?
configure terminal
router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
{% for neighbor_ip in BGP_NEIGHBOR %}
{% if neighbor_ip | ipv4 %}
no neighbor {{ neighbor_ip }} route-map ISOLATE out
{% else %}
address-family ipv6
no neighbor {{ neighbor_ip }} route-map ISOLATE out
exit-address-family
{% endif %}
{% endfor %}
exit
exit
Expand Down
6 changes: 6 additions & 0 deletions dockers/docker-fpm-quagga/isolate.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ exit $?
configure terminal
router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
{% for neighbor_addr in BGP_NEIGHBOR %}
{% if neighbor_addr | ipv4 %}
neighbor {{ neighbor_addr }} route-map ISOLATE out
{% else %}
address-family ipv6
neighbor {{ neighbor_addr }} route-map ISOLATE out
exit-address-family
{% endif %}
{% endfor %}
exit
exit
Expand Down
6 changes: 6 additions & 0 deletions dockers/docker-fpm-quagga/unisolate.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ exit $?
configure terminal
router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
{% for neighbor_ip in BGP_NEIGHBOR %}
{% if neighbor_ip | ipv4 %}
no neighbor {{ neighbor_ip }} route-map ISOLATE out
{% else %}
address-family ipv6
no neighbor {{ neighbor_ip }} route-map ISOLATE out
exit-address-family
{% endif %}
{% endfor %}
exit
exit
Expand Down