summaryrefslogtreecommitdiff
path: root/interface-definitions/include/bgp/protocol-common-config.xml.i
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 /interface-definitions/include/bgp/protocol-common-config.xml.i
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 'interface-definitions/include/bgp/protocol-common-config.xml.i')
-rw-r--r--interface-definitions/include/bgp/protocol-common-config.xml.i30
1 files changed, 30 insertions, 0 deletions
diff --git a/interface-definitions/include/bgp/protocol-common-config.xml.i b/interface-definitions/include/bgp/protocol-common-config.xml.i
index d69fd7dab..f95031a75 100644
--- a/interface-definitions/include/bgp/protocol-common-config.xml.i
+++ b/interface-definitions/include/bgp/protocol-common-config.xml.i
@@ -873,6 +873,36 @@
</node>
</children>
</node>
+<tagNode name="interface">
+ <properties>
+ <help>Enable MPLS on Interface</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces</script>
+ </completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Interface name</description>
+ </valueHelp>
+ <constraint>
+ #include <include/constraint/interface-name.xml.i>
+ </constraint>
+ </properties>
+ <children>
+ <node name="mpls">
+ <properties>
+ <help> MPLS options</help>
+ </properties>
+ <children>
+ <leafNode name="forwarding">
+ <properties>
+ <help> Enable MPLS forwarding for eBGP directly connected peers</help>
+ <valueless/>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+</tagNode>
<node name="listen">
<properties>
<help>Listen for and accept BGP dynamic neighbors from range</help>