diff options
| author | Robin Christ <r.christ@partimus.com> | 2026-03-29 12:25:26 +0200 |
|---|---|---|
| committer | Robin Christ <r.christ@partimus.com> | 2026-03-29 12:25:40 +0200 |
| commit | d0b9b7037478d2374007c87cd7cc5d424d3674e6 (patch) | |
| tree | 7705f51bb269efa933c8a51a5f09f6a4a8ffd84a /data | |
| parent | ad6f703b16464a6cb73f9052077a6100aff4db73 (diff) | |
| download | vyos-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 'data')
| -rw-r--r-- | data/templates/frr/bgpd.frr.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2 index 44022f738..929e57d9c 100644 --- a/data/templates/frr/bgpd.frr.j2 +++ b/data/templates/frr/bgpd.frr.j2 @@ -259,7 +259,7 @@ {# j2lint: disable=jinja-statements-delimeter #} {%- endmacro -%} ! -router bgp {{ system_as }} {{ 'vrf ' ~ vrf if vrf is vyos_defined }} +router bgp {{ system_as }} {{ 'vrf ' ~ vrf if vrf is vyos_defined }} {{ 'as-notation ' ~ parameters.as_notation | replace('as', '') if parameters.as_notation is vyos_defined }} {% if parameters.ebgp_requires_policy is vyos_defined %} bgp ebgp-requires-policy {% else %} |
