From 5fee46f5b04ba3c95414a3aa583c4a308bbecd12 Mon Sep 17 00:00:00 2001 From: Cory Hawkless Date: Sat, 7 Nov 2020 23:00:19 +1030 Subject: [PATCH] Added bgp_redistribute_connected conditrional --- templates/frr.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/frr.conf.j2 b/templates/frr.conf.j2 index cbdd33f..ee6fae4 100644 --- a/templates/frr.conf.j2 +++ b/templates/frr.conf.j2 @@ -47,6 +47,9 @@ router bgp {{host_ASN}} {% if host_loopback_IP is defined %} network {{host_loopback_IP}}/32 {% endif %} +{% if bgp_redistribute_connected is defined and bgp_redistribute_connected == True %} + redistribute connected +{% endif %} {% if autobgp_interfaces is defined and autobgp_interfaces != [] %} neighbor fabric activate neighbor fabric prefix-list AS{{host_ASN}}-OUT out