[bgp]: Fix isolate/unisolate command for ipv6 peers (#3183)
* Fix isolate/unisolate command for ipv6 peers
This commit is contained in:
parent
6e37e23006
commit
7af546908f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user