diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-24 15:35:38 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-24 15:35:38 +0100 |
commit | 5ab6882f88036722f533f37331d9e5b63631f4b2 (patch) | |
tree | 3ef49f5ed003fb2dd129767dfaad2f321ffbde3b /data/templates/frr | |
parent | 42f91ee461589f1a407a2ceec8c63dd889f4a609 (diff) | |
download | vyos-1x-5ab6882f88036722f533f37331d9e5b63631f4b2.tar.gz vyos-1x-5ab6882f88036722f533f37331d9e5b63631f4b2.zip |
bgp: T2347: bugfix import/export route-map
There can be both an import and an export route-map - the Jinja2 template
syntax only allowed one direction and not the other.
Diffstat (limited to 'data/templates/frr')
-rw-r--r-- | data/templates/frr/bgp.frr.tmpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl index 2deee245d..cba62cce1 100644 --- a/data/templates/frr/bgp.frr.tmpl +++ b/data/templates/frr/bgp.frr.tmpl @@ -124,7 +124,8 @@ {% if config.address_family[af].route_map is defined and config.address_family[af].route_map is not none %} {% if config.address_family[af].route_map.export is defined and config.address_family[af].route_map.export is not none %} neighbor {{ neighbor }} route-map {{ config.address_family[af].route_map.export }} out -{% elif config.address_family[af].route_map.import is defined and config.address_family[af].route_map.import is not none %} +{% endif %} +{% if config.address_family[af].route_map.import is defined and config.address_family[af].route_map.import is not none %} neighbor {{ neighbor }} route-map {{ config.address_family[af].route_map.import }} in {% endif %} {% endif %} |