From d0b9b7037478d2374007c87cd7cc5d424d3674e6 Mon Sep 17 00:00:00 2001 From: Robin Christ Date: Sun, 29 Mar 2026 12:25:26 +0200 Subject: bgp: T7338: Add support for "parameters as-notation " We explicitly omit the "plain" option, as it is the implicit default in FRR We also do not want to add "plain" as VyOS default value and emit it by default as this makes the config a bit ugly (frr puts it in the router line so you get "router bgp as-notation plain"). Additionally, setting plain as default value and emitting it by default would break pretty much all BGP tests, as they commonly do self.getFRRconfig(f'router bgp {ASN}', stop_section='^exit') and getFRRConfig does a "^$" match, which breaks when you add the "as-notation plain" --- .../include/bgp/protocol-common-config.xml.i | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'interface-definitions/include') diff --git a/interface-definitions/include/bgp/protocol-common-config.xml.i b/interface-definitions/include/bgp/protocol-common-config.xml.i index f4bcf1509..ccf976b29 100644 --- a/interface-definitions/include/bgp/protocol-common-config.xml.i +++ b/interface-definitions/include/bgp/protocol-common-config.xml.i @@ -1153,6 +1153,25 @@ BGP parameters + + + BGP AS-notation output format + + asdot asdot+ + + + asdot + Use asdot notation only for 4 byte AS numbers + + + asdot+ + Use asdot notation for all AS numbers + + + (asdot\+|asdot) + + + Allow Martian nexthops to be received in the NLRI from a peer -- cgit v1.2.3