From 372a0effd023c435b99b7cd88ef3400969841bc3 Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 3 Oct 2017 16:44:27 +0200 Subject: [PATCH] bird6.conf: export bgp into ospf --- salt/bird/bird6.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/salt/bird/bird6.conf b/salt/bird/bird6.conf index a3978a5..6dd401d 100644 --- a/salt/bird/bird6.conf +++ b/salt/bird/bird6.conf @@ -43,6 +43,15 @@ protocol radv { {%- endif %} protocol ospf ZW6 { +{%- if pillar.get('bgp') %} + export filter { + if source = RTS_BGP then { + ospf_metric1 = 100; + accept; + } + reject; + }; +{%- endif %} area 0 { networks { fd23:42:c3d2:500::/56; @@ -77,4 +86,4 @@ protocol bgp { {%- endfor %} export where source=RTS_STATIC; } -{%- endif %} \ No newline at end of file +{%- endif %}