summaryrefslogtreecommitdiff
path: root/interface-definitions/vrf.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-29 18:30:28 +0200
committerChristian Poessinger <christian@poessinger.com>2021-03-29 20:01:59 +0200
commit73557d68b1cb54714fc0c3652a9ab29559da00ee (patch)
tree0bb46133ca0e852923da49b7812c534c836db8c4 /interface-definitions/vrf.xml.in
parent113338f794dd4955566a1fa39833fe1c01311f7b (diff)
downloadvyos-1x-73557d68b1cb54714fc0c3652a9ab29559da00ee.tar.gz
vyos-1x-73557d68b1cb54714fc0c3652a9ab29559da00ee.zip
bgp: T1711: remove ASN tagNode and move to "local-as"
Every time when set configuration bgp, you need set AS number. There is very less benefit in this system so the AS number is moved from a tagNode level down to a leafNode with the name "local-as", same as on the neighbor or peer-group level. This changes the CLI configuration from: set protocols bgp 100 neighbor 10.10.1.2 remote-as 200 to set protocols bgp local-as 100 set protocols bgp neighbor 10.10.1.2 remote-as 200
Diffstat (limited to 'interface-definitions/vrf.xml.in')
-rw-r--r--interface-definitions/vrf.xml.in11
1 files changed, 2 insertions, 9 deletions
diff --git a/interface-definitions/vrf.xml.in b/interface-definitions/vrf.xml.in
index 7e5765c54..8a56b1bc0 100644
--- a/interface-definitions/vrf.xml.in
+++ b/interface-definitions/vrf.xml.in
@@ -33,22 +33,15 @@
<help>Routing protocol parameters</help>
</properties>
<children>
- <tagNode name="bgp" owner="${vyos_conf_scripts_dir}/protocols_bgp.py $VAR(../../@)">
+ <node name="bgp" owner="${vyos_conf_scripts_dir}/protocols_bgp.py $VAR(../../@)">
<properties>
<help>Border Gateway Protocol (BGP)</help>
<priority>821</priority>
- <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>
<node name="isis" owner="${vyos_conf_scripts_dir}/protocols_isis.py $VAR(../../@)">
<properties>
<help>Intermediate System to Intermediate System (IS-IS)</help>