|
|
|
@ -25,3 +25,21 @@ add tmp-bcp38-else-oface-v6 ::/0,{{ iface }}
|
|
|
|
|
{% endif %}{% endfor %}
|
|
|
|
|
swap tmp-bcp38-else-oface-v6 bcp38-else-oface-v6
|
|
|
|
|
destroy tmp-bcp38-else-oface-v6
|
|
|
|
|
|
|
|
|
|
{% if salt["pillar.get"]("control-plane-protection:bgp:IPv4",None) != None %}
|
|
|
|
|
create tmp-control-plane-bgp-v4 hash:net family inet hashsize 1024 maxelem 65536
|
|
|
|
|
{% for subnet in salt["pillar.get"]("control-plane-protection:bgp:IPv4",[]) %}
|
|
|
|
|
add tmp-control-plane-bgp-v4 {{ subnet }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
swap tmp-control-plane-bgp-v4 control-plane-bgp-v4
|
|
|
|
|
destroy tmp-control-plane-bgp-v4
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if salt["pillar.get"]("control-plane-protection:bgp:IPv6",None) != None %}
|
|
|
|
|
create tmp-control-plane-bgp-v6 hash:net family inet6 hashsize 1024 maxelem 65536
|
|
|
|
|
{% for subnet in salt["pillar.get"]("control-plane-protection:bgp:IPv6",[]) %}
|
|
|
|
|
add tmp-control-plane-bgp-v6 {{ subnet }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
swap tmp-control-plane-bgp-v6 control-plane-bgp-v6
|
|
|
|
|
destroy tmp-control-plane-bgp-v6
|
|
|
|
|
{% endif %}
|
|
|
|
|