summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authoraapostoliuk <a.apostoliuk@vyos.io>2023-07-11 17:04:02 +0300
committeraapostoliuk <a.apostoliuk@vyos.io>2023-07-11 17:32:19 +0300
commitcedf7ecfb6048cce1082d234f9d859f955b0c2cd (patch)
treee9d5439e24180965b762416d11e76ccf5af06662 /data/templates
parent0586941f7bc3bcd55721d7c44164ef7a2de9423d (diff)
downloadvyos-1x-cedf7ecfb6048cce1082d234f9d859f955b0c2cd.tar.gz
vyos-1x-cedf7ecfb6048cce1082d234f9d859f955b0c2cd.zip
bgp: T5338: Added 'protocols bgp interface <int> mpls forwarding' feature
Added 'protocols bgp interface <int> mpls forwarding' feature. It is possible to permit BGP install VPN prefixes without transport labels. This configuration will install VPN prefixes originated from an e-bgp session, and with the next-hop directly connected.
Diffstat (limited to 'data/templates')
-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 %}