Skip to content

Commit

Permalink
[bgp]: Fix isolate/unisolate command for ipv6 peers (#3183)
Browse files Browse the repository at this point in the history
* Fix isolate/unisolate command for ipv6 peers
  • Loading branch information
pavel-shirshov authored Jul 18, 2019
1 parent 6e37e23 commit 7af5469
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
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

0 comments on commit 7af5469

Please sign in to comment.