From cedf7ecfb6048cce1082d234f9d859f955b0c2cd Mon Sep 17 00:00:00 2001 From: aapostoliuk Date: Tue, 11 Jul 2023 17:04:02 +0300 Subject: bgp: T5338: Added 'protocols bgp interface mpls forwarding' feature Added 'protocols bgp interface 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. --- data/templates/frr/bgpd.frr.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'data/templates/frr/bgpd.frr.j2') 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 %} -- cgit v1.2.3