From 313dd8908993bf43302c0f4de3cfa125d33c38a0 Mon Sep 17 00:00:00 2001 From: Cory Date: Thu, 25 Mar 2021 16:47:02 +1030 Subject: [PATCH] Added bgp peering info to bond_interfaces --- templates/frr.conf.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/frr.conf.j2 b/templates/frr.conf.j2 index b4cfd49..4584681 100644 --- a/templates/frr.conf.j2 +++ b/templates/frr.conf.j2 @@ -41,6 +41,11 @@ router bgp {{host_ASN}} {% for item in frr_other_peers %} neighbor {{ item['ip'] }} remote-as {{ item['remote_ASN'] }} {% endfor %} +{% endif %} +{% if bond_interfaces is defined and bond_interfaces != [] %} +{% for item in bond_interfaces %} + neighbor {{ item['ip'] }} remote-as {{ item['remote_ASN'] }} +{% endfor %} {% endif %} ! address-family ipv4 unicast