summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-07-12 21:05:12 +0200
committerChristian Breunig <christian@breunig.cc>2023-07-12 21:16:56 +0200
commit6e621e42f463d8643b504916a1cc7c967f5bd6f1 (patch)
treed6b17a1fceab9e9aaf8d836576c881640235ac22 /data/templates
parent6a44472d0b94ff225499f61ce057ad7709c9fafc (diff)
downloadvyos-1x-6e621e42f463d8643b504916a1cc7c967f5bd6f1.tar.gz
vyos-1x-6e621e42f463d8643b504916a1cc7c967f5bd6f1.zip
bgp: T5338: simplify XML and code handling
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/frr/bgpd.frr.j27
1 files changed, 4 insertions, 3 deletions
diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2
index 9cfc8b7cd..ddfba2306 100644
--- a/data/templates/frr/bgpd.frr.j2
+++ b/data/templates/frr/bgpd.frr.j2
@@ -565,13 +565,14 @@ bgp route-reflector allow-outbound-policy
timers bgp {{ timers.keepalive }} {{ timers.holdtime }}
{% endif %}
exit
+!
{% if interface is vyos_defined %}
{% for iface, iface_config in interface.items() %}
- interface {{ iface }}
+interface {{ iface }}
{% if iface_config.mpls.forwarding is vyos_defined %}
mpls bgp forwarding
{% endif %}
- exit
- !
+exit
+!
{% endfor %}
{% endif %}