summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorRobin Christ <r.christ@partimus.com>2026-03-29 12:25:26 +0200
committerRobin Christ <r.christ@partimus.com>2026-03-29 12:25:40 +0200
commitd0b9b7037478d2374007c87cd7cc5d424d3674e6 (patch)
tree7705f51bb269efa933c8a51a5f09f6a4a8ffd84a /interface-definitions
parentad6f703b16464a6cb73f9052077a6100aff4db73 (diff)
downloadvyos-1x-d0b9b7037478d2374007c87cd7cc5d424d3674e6.tar.gz
vyos-1x-d0b9b7037478d2374007c87cd7cc5d424d3674e6.zip
bgp: T7338: Add support for "parameters as-notation <asdot|asdot+>"
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> 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 "^<content>$" match, which breaks when you add the "as-notation plain"
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/bgp/protocol-common-config.xml.i19
1 files changed, 19 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 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 @@
<help>BGP parameters</help>
</properties>
<children>
+ <leafNode name="as-notation">
+ <properties>
+ <help>BGP AS-notation output format</help>
+ <completionHelp>
+ <list>asdot asdot+</list>
+ </completionHelp>
+ <valueHelp>
+ <format>asdot</format>
+ <description>Use asdot notation only for 4 byte AS numbers</description>
+ </valueHelp>
+ <valueHelp>
+ <format>asdot+</format>
+ <description>Use asdot notation for all AS numbers</description>
+ </valueHelp>
+ <constraint>
+ <regex>(asdot\+|asdot)</regex>
+ </constraint>
+ </properties>
+ </leafNode>
<leafNode name="allow-martian-nexthop">
<properties>
<help>Allow Martian nexthops to be received in the NLRI from a peer</help>