diff options
author | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-08-07 16:59:35 +0000 |
---|---|---|
committer | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-08-07 17:01:26 +0000 |
commit | 2b05ac9e341369ee051f3797bf5b8ecce0c22af7 (patch) | |
tree | 4a7bf3c5f24b63cba7c859758ba7ed11404a232c /data/templates/frr | |
parent | 5474a82034a0354c0e5878fd6690d0861435e992 (diff) | |
download | vyos-1x-2b05ac9e341369ee051f3797bf5b8ecce0c22af7.tar.gz vyos-1x-2b05ac9e341369ee051f3797bf5b8ecce0c22af7.zip |
T5446: BGP: change <bgp paramater bestpath med> from node to leafNode, in order to avoid empty value and problems when removing such parameters
Diffstat (limited to 'data/templates/frr')
-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 ddfba2306..4535758da 100644 --- a/data/templates/frr/bgpd.frr.j2 +++ b/data/templates/frr/bgpd.frr.j2 @@ -481,7 +481,7 @@ router bgp {{ system_as }} {{ 'vrf ' ~ vrf if vrf is vyos_defined }} bgp bestpath compare-routerid {% endif %} {% if parameters.bestpath.med is vyos_defined %} - bgp bestpath med {{ 'confed' if parameters.bestpath.med.confed is vyos_defined }} {{ 'missing-as-worst' if parameters.bestpath.med.missing_as_worst is vyos_defined }} + bgp bestpath med {{ parameters.bestpath.med | join(' ') | replace('_', '-') }} {% endif %} {% if parameters.bestpath.peer_type is vyos_defined %} bgp bestpath peer-type {{ 'multipath-relax' if parameters.bestpath.peer_type.multipath_relax is vyos_defined }} |