We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3e2a65 commit 1ec68bbCopy full SHA for 1ec68bb
netsim/ansible/templates/bgp/ios.macro.j2
@@ -30,9 +30,15 @@
30
neighbor {{ ip }} next-hop-self all
31
{% endif %}
32
{% if n.type in bgp.community|default({}) %}
33
-{% for c_type in bgp.community[n.type] %}
+{% set c_list = bgp.community[n.type] %}
34
+{# Deal with IOS/XE regression to the 90s #}
35
+{% if 'standard' in c_list and 'extended' in c_list %}
36
+ neighbor {{ ip }} send-community both
37
+{% else %}
38
+{% for c_type in c_list %}
39
neighbor {{ ip }} send-community {{ c_type }}
-{% endfor %}
40
+{% endfor %}
41
+{% endif %}
42
43
{%- endmacro -%}
44
{#
0 commit comments