diff --git a/salt/bird/bird.conf b/salt/bird/bird.conf index aefc8ac..7dc253f 100644 --- a/salt/bird/bird.conf +++ b/salt/bird/bird.conf @@ -33,11 +33,16 @@ protocol ospf ZW4 { } {%- if pillar.get('bgp') %} +protocol static { + route 172.20.72.0/21 unreachable; +} + protocol bgp { local as {{ pillar['bgp']['asn'] }}; import all; {%- for host, neighbor in pillar['bgp']['peers-inet'].items() %} neighbor {{ host }} as {{ neighbor.asn }}; {%- endfor %} + export where source=RTS_STATIC; } {%- endif %} diff --git a/salt/bird/bird6.conf b/salt/bird/bird6.conf index 1605900..333813c 100644 --- a/salt/bird/bird6.conf +++ b/salt/bird/bird6.conf @@ -33,11 +33,16 @@ protocol ospf ZW6 { } {%- if pillar.get('bgp') %} +protocol static { + route fd23:42:c3d2:500::/56 unreachable; +} + protocol bgp { local as {{ pillar['bgp']['asn'] }}; import all; {%- for host, neighbor in pillar['bgp']['peers-inet6'].items() %} neighbor {{ host }} as {{ neighbor.asn }}; {%- endfor %} + export where source=RTS_STATIC; } {%- endif %} \ No newline at end of file