diff options
author | sever-sever <v.gletenko@vyos.io> | 2021-02-19 11:48:38 +0000 |
---|---|---|
committer | sever-sever <v.gletenko@vyos.io> | 2021-02-19 16:18:05 +0000 |
commit | b5f67d4ea18dce4d9d5586d5a11590c6a45b3251 (patch) | |
tree | b864c9a628474571bb67a5f9538aaacc47dda2dc /data/templates/frr/bgp.frr.tmpl | |
parent | d3c9a52e8788513c593fd872ecea18bd3dea2ffa (diff) | |
download | vyos-1x-b5f67d4ea18dce4d9d5586d5a11590c6a45b3251.tar.gz vyos-1x-b5f67d4ea18dce4d9d5586d5a11590c6a45b3251.zip |
bgp: T3330: Fix capability orf prefix-list
Diffstat (limited to 'data/templates/frr/bgp.frr.tmpl')
-rw-r--r-- | data/templates/frr/bgp.frr.tmpl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl index 4cb2ad092..08b6cb791 100644 --- a/data/templates/frr/bgp.frr.tmpl +++ b/data/templates/frr/bgp.frr.tmpl @@ -108,8 +108,11 @@ {% if afi_config.attribute_unchanged is defined and afi_config.attribute_unchanged is not none %} neighbor {{ neighbor }} attribute-unchanged {{ 'as-path ' if afi_config.attribute_unchanged.as_path is defined }}{{ 'med ' if afi_config.attribute_unchanged.med is defined }}{{ 'next-hop ' if afi_config.attribute_unchanged.next_hop is defined }} {% endif %} -{% if afi_config.capability is defined and afi_config.capability.orf is defined and afi_config.capability.orf.prefix_list is defined and afi_config.capability.orf.prefix_list is not none %} - neighbor {{ neighbor }} capability orf prefix-list {{ afi_config.capability.orf.prefix_list }} +{% if afi_config.capability is defined and afi_config.capability.orf is defined and afi_config.capability.orf.prefix_list is defined and afi_config.capability.orf.prefix_list.send is defined %} + neighbor {{ neighbor }} capability orf prefix-list send +{% endif %} +{% if afi_config.capability is defined and afi_config.capability.orf is defined and afi_config.capability.orf.prefix_list is defined and afi_config.capability.orf.prefix_list.receive is defined %} + neighbor {{ neighbor }} capability orf prefix-list receive {% endif %} {% if afi_config.default_originate is defined %} neighbor {{ neighbor }} default-originate {{ 'route-map ' + afi_config.default_originate.route_map if afi_config.default_originate.route_map is defined }} |