From 73557d68b1cb54714fc0c3652a9ab29559da00ee Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 29 Mar 2021 18:30:28 +0200 Subject: 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 --- .../include/bgp/bgp-common-config.xml.i | 16 ++++++++++++++-- interface-definitions/protocols-bgp.xml.in | 11 ++--------- interface-definitions/vrf.xml.in | 11 ++--------- 3 files changed, 18 insertions(+), 20 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/include/bgp/bgp-common-config.xml.i b/interface-definitions/include/bgp/bgp-common-config.xml.i index ae0e8b178..c89e2288e 100644 --- a/interface-definitions/include/bgp/bgp-common-config.xml.i +++ b/interface-definitions/include/bgp/bgp-common-config.xml.i @@ -280,7 +280,7 @@ - Listen for and accept BGP dynamic neighbors from range + BGP dynamic neighbors listen commands @@ -297,7 +297,7 @@ - BGP dynamic neighbors listen range + Dynamic neighbors listen range ipv4net IPv4 dynamic neighbors listen range @@ -317,6 +317,18 @@ + + + Autonomous System Number (ASN) + + u32:1-4294967294 + Autonomous System Number + + + + + + BGP neighbor diff --git a/interface-definitions/protocols-bgp.xml.in b/interface-definitions/protocols-bgp.xml.in index cf897d04f..d610f8dff 100644 --- a/interface-definitions/protocols-bgp.xml.in +++ b/interface-definitions/protocols-bgp.xml.in @@ -2,22 +2,15 @@ - + Border Gateway Protocol (BGP) 820 - - u32:1-4294967294 - Autonomous System Number - - - - #include - + 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 @@ Routing protocol parameters - + Border Gateway Protocol (BGP) 821 - - u32:1-4294967294 - Autonomous System Number - - - - #include - + Intermediate System to Intermediate System (IS-IS) -- cgit v1.2.3