diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-17 19:21:57 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-06-17 19:21:57 +0200 |
commit | 635eed0452f15b18b8125e831b48582fa093c125 (patch) | |
tree | ac78747c07fd1cc71cbcea38125263fba458afe0 /data/templates/frr/bgpd.frr.tmpl | |
parent | 6cfcf7a761adb3e51f9279611435a39a1424e9c9 (diff) | |
parent | 13f0bf83f67a90e8164dec84ed0aced2440688fb (diff) | |
download | vyos-1x-635eed0452f15b18b8125e831b48582fa093c125.tar.gz vyos-1x-635eed0452f15b18b8125e831b48582fa093c125.zip |
Merge branch 'route-map-extcommunity' into current
* route-map-extcommunity:
policy: T3631: migrate "set extcommunity-rt|soo" to "set extcommunity rt|soo"
route-map: T3632: fix invalid validation regex for extcommunity-rt|soo
bgp: T3624: add "bandwidth" bestpath option
policy: T3624: remove duplicate CLI node for "bgp-extcommunity-rt"
policy: T3624: add extended community bandwith support to route-map
policy: T3631: migrate "set extcommunity-rt/soo" to "set extcommunity rt|soo"
Diffstat (limited to 'data/templates/frr/bgpd.frr.tmpl')
-rw-r--r-- | data/templates/frr/bgpd.frr.tmpl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/data/templates/frr/bgpd.frr.tmpl b/data/templates/frr/bgpd.frr.tmpl index 158da3605..c21e7f234 100644 --- a/data/templates/frr/bgpd.frr.tmpl +++ b/data/templates/frr/bgpd.frr.tmpl @@ -402,15 +402,18 @@ router bgp {{ local_as }} {{ 'vrf ' ~ vrf if vrf is defined and vrf is not none bgp always-compare-med {% endif %} {% if parameters.bestpath is defined and parameters.bestpath is not none %} -{% if parameters.bestpath.compare_routerid is defined %} - bgp bestpath compare-routerid -{% endif %} {% if parameters.bestpath.as_path is defined and parameters.bestpath.as_path is not none %} {% for option in parameters.bestpath.as_path %} {# replace is required for multipath-relax option #} bgp bestpath as-path {{ option|replace('_', '-') }} {% endfor %} {% endif %} +{% if parameters.bestpath.bandwidth is defined and parameters.bestpath.bandwidth is not none %} + bgp bestpath bandwidth {{ parameters.bestpath.bandwidth }} +{% endif %} +{% if parameters.bestpath.compare_routerid is defined %} + bgp bestpath compare-routerid +{% endif %} {% if parameters.bestpath.med is defined and parameters.bestpath.med is not none %} bgp bestpath med {{ 'confed' if parameters.bestpath.med.confed is defined }} {{ 'missing-as-worst' if parameters.bestpath.med.missing_as_worst is defined }} {% endif %} |