summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-07-12 19:56:51 +0200
committerGitHub <noreply@github.com>2023-07-12 19:56:51 +0200
commit64360db360a36f45083a1ff6a5d5245e192ab165 (patch)
treed7e9e56425db51d06ed5f52880c8690fffd422b9 /data
parent45e39efb3955a1fff5340685674ce3c0fb6592cc (diff)
parentcedf7ecfb6048cce1082d234f9d859f955b0c2cd (diff)
downloadvyos-1x-64360db360a36f45083a1ff6a5d5245e192ab165.tar.gz
vyos-1x-64360db360a36f45083a1ff6a5d5245e192ab165.zip
Merge pull request #2085 from aapostoliuk/T5338-sagitta
bgp: T5338: Added 'protocols bgp interface <int> mpls forwarding' feature
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/bgpd.frr.j210
1 files changed, 10 insertions, 0 deletions
diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2
index 3e101820c..9cfc8b7cd 100644
--- a/data/templates/frr/bgpd.frr.j2
+++ b/data/templates/frr/bgpd.frr.j2
@@ -565,3 +565,13 @@ 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 }}
+{% if iface_config.mpls.forwarding is vyos_defined %}
+ mpls bgp forwarding
+{% endif %}
+ exit
+ !
+{% endfor %}
+{% endif %}