summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-07 22:50:48 +0200
committerGitHub <noreply@github.com>2023-08-07 22:50:48 +0200
commit91144f29f0cd636a30a27efcdc1d9a389e2c5071 (patch)
tree4a7bf3c5f24b63cba7c859758ba7ed11404a232c /data
parent5474a82034a0354c0e5878fd6690d0861435e992 (diff)
parent2b05ac9e341369ee051f3797bf5b8ecce0c22af7 (diff)
downloadvyos-1x-91144f29f0cd636a30a27efcdc1d9a389e2c5071.tar.gz
vyos-1x-91144f29f0cd636a30a27efcdc1d9a389e2c5071.zip
Merge pull request #2137 from nicolas-fort/T5446
T5446: BGP: change <bgp paramater bestpath med> from node to leafNode
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/bgpd.frr.j22
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 }}