Replies: 4 comments 1 reply
-
I found the "type" confusing, because many of the communities we import are also exported to downstreams and peers. e.g. are these communities that So my vote is remove the import/export |
Beta Was this translation helpful? Give feedback.
-
I currently use the {%-for community in ixp.communities.all() %}
{%- if community.type == "ingress" %}
set community {{ community.value }} additive
{%-endif %}
{%-endfor%} This is something I could probably use tags for but having the feature is nice. |
Beta Was this translation helpful? Give feedback.
-
Similar here - but I build community-sets instead (don't ask about the 9999 at the end - I was to lazy to code something to omit the "," ! Communities for AS{{as.asn}}
large-community-set large-communities-as{{ as.asn }}-in
{%- for community in as.communities.all() %}
{%- if community.type == "ingress" %}
{%- if community | has_tag("large-community") %}
{{ community.value }},
{%- endif %}
{%- endif %}
{%- endfor %}
{{local_as.asn}}:9999:9999
end-set
large-community-set large-communities-as{{ as.asn }}-out
{%- for community in as.communities.all() %}
{%- if community.type == "egress" %}
{%- if community | has_tag("large-community") %}
{{ community.value }},
{%- endif %}
{%- endif %}
{%- endfor %}
{{local_as.asn}}:9999:9999
end-set I already use a tag to check if a community is large, so another one would be even less "elegant"... |
Beta Was this translation helpful? Give feedback.
-
What if we make this field optional then? |
Beta Was this translation helpful? Give feedback.
-
When communities have been introduced, a
type
field was included to separate communities that may be applied when receiving or advertising a route. I believe that this field is not really useful and could be removed. Let us know what you think with this poll.3 votes ·
Beta Was this translation helpful? Give feedback.
All reactions