leaf: consolidate IPv4 and IPv6 address families for BGP
Same applies to spine.
This commit is contained in:
parent
d667a38553
commit
8a0113ea49
|
@ -41,7 +41,8 @@ router bgp {{ asn.asn }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
address-family ipv4 unicast
|
{% for family in ['ipv4', 'ipv6'] %}
|
||||||
|
address-family {{ family }} unicast
|
||||||
redistribute connected route-map loopbacks
|
redistribute connected route-map loopbacks
|
||||||
neighbor fabric activate
|
neighbor fabric activate
|
||||||
{% for tenant in my_tenants %}
|
{% for tenant in my_tenants %}
|
||||||
|
@ -51,16 +52,7 @@ router bgp {{ asn.asn }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
exit-address-family
|
exit-address-family
|
||||||
|
|
||||||
address-family ipv6 unicast
|
|
||||||
redistribute connected route-map loopbacks
|
|
||||||
neighbor fabric activate
|
|
||||||
{% for tenant in my_tenants %}
|
|
||||||
neighbor dc-{{ tenant }} activate
|
|
||||||
neighbor dc-{{ tenant }} route-map dc-{{ tenant }}->default in
|
|
||||||
neighbor dc-{{ tenant }} route-map default->dc out
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
exit-address-family
|
|
||||||
|
|
||||||
address-family l2vpn evpn
|
address-family l2vpn evpn
|
||||||
neighbor fabric activate
|
neighbor fabric activate
|
||||||
{% for iface in ifaces_evpn|default([]) %}
|
{% for iface in ifaces_evpn|default([]) %}
|
||||||
|
|
Loading…
Reference in a new issue