Skip to content

apply route-map and prefix-list only to nodes that have the BGP peering applied #4559

Discussion options

You must be logged in to vote

For now the only way would be to use some inline-jinja to check if you are on one of the 6 nodes.

Written from memory, to may need some adjustment. Refer to Ansible docs for guidance.

structured_config: |-
  {% if inventory_hostname in ['node1', 'node2'] %}
  route_maps: ...
  {% elif %}
  null
  {% endif %}

We have implemented ipv4_prefix_list_catalog, but it is currently only used by l3_interfaces defined under the nodes.

We would like to implement similar "catalogs" of route-maps and other areas which will be applied when referred to under the BGP peers, peer-groups etc. So the route-maps and prefix-lists them selves would also get proper models in eos_designs.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ClausHolbechArista
Comment options

@PieterL75
Comment options

Answer selected by PieterL75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants