summaryrefslogtreecommitdiff
path: root/interface-definitions/protocols-vrf.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-12 19:49:18 +0100
committerChristian Poessinger <christian@poessinger.com>2021-03-14 11:09:57 +0100
commitf3ed5e7c57c123661b1b550823a467a34c161024 (patch)
treeafb9faf3bd9e3b134657d018137f987c3a4d1cd7 /interface-definitions/protocols-vrf.xml.in
parent576f1cb41c4d531bd16628e9b772f5ff766e3fad (diff)
downloadvyos-1x-f3ed5e7c57c123661b1b550823a467a34c161024.tar.gz
vyos-1x-f3ed5e7c57c123661b1b550823a467a34c161024.zip
vrf: bgp: T2271: create individual BGP process for specified VRF name
The following VyOS CLI config vrf red { bgp 100 { neighbor 1.1.1.1 { peer-group foo } peer-group foo { passive password bar remote-as 200 } } } Will generaste the FRR configuration: ! router bgp 100 vrf red no bgp ebgp-requires-policy no bgp network import-check neighbor foo peer-group neighbor foo remote-as 200 neighbor foo password bar neighbor foo passive neighbor 1.1.1.1 peer-group foo !
Diffstat (limited to 'interface-definitions/protocols-vrf.xml.in')
-rw-r--r--interface-definitions/protocols-vrf.xml.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/interface-definitions/protocols-vrf.xml.in b/interface-definitions/protocols-vrf.xml.in
index e9ef5dc2a..e40edb16c 100644
--- a/interface-definitions/protocols-vrf.xml.in
+++ b/interface-definitions/protocols-vrf.xml.in
@@ -27,6 +27,21 @@
#include <include/static-route6.xml.i>
</children>
</node>
+ <tagNode name="bgp" owner="${vyos_conf_scripts_dir}/protocols_bgp.py $VAR(../@)">
+ <properties>
+ <help>Border Gateway Protocol (BGP)</help>
+ <valueHelp>
+ <format>u32:1-4294967294</format>
+ <description>Autonomous System Number</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-4294967294"/>
+ </constraint>
+ </properties>
+ <children>
+ #include <include/bgp/bgp-common-config.xml.i>
+ </children>
+ </tagNode>
<node name="ospf" owner="${vyos_conf_scripts_dir}/protocols_ospf.py $VAR(../@)">
<properties>
<help>Open Shortest Path First (OSPF)</help>