summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-19 17:52:49 +0100
committerGitHub <noreply@github.com>2021-02-19 17:52:49 +0100
commit4ef293430ac0c7a4679ca028269f0579ca0cfa94 (patch)
tree9585e826d0476bdc2ceb857586a94799e5398c86
parent57f3fd3ae8acfa4aed980971e4263fdc2b1e061b (diff)
parentb5f67d4ea18dce4d9d5586d5a11590c6a45b3251 (diff)
downloadvyos-1x-4ef293430ac0c7a4679ca028269f0579ca0cfa94.tar.gz
vyos-1x-4ef293430ac0c7a4679ca028269f0579ca0cfa94.zip
Merge pull request #736 from sever-sever/T3330
bgp: T3330: Fix capability orf prefix-list
-rw-r--r--data/templates/frr/bgp.frr.tmpl7
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 }}