bird: export static routes to bgp
This commit is contained in:
parent
d3783f251f
commit
cf6e8efddf
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
Loading…
Reference in New Issue