Skip to content

Managing route_maps: and prefix_lists: #2241

Closed Answered by carlbuchmann
rich9474 asked this question in Q&A
Discussion options

You must be logged in to vote

@rich9474 - Thanks for your patience; we missed this question!

When you leverage the same key route_maps at various levels, you are subject to Ansible variable precedence rules, and the variable closest to the host will win -> https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable.

If you are leveraging eos_designs, you can leverage custom_structured_configuration, with a custom prefix for each level to achieve a merge of configuration.

For example:

# define custom structured configuration prefix for each level in your top-level variable.
custom_structured_configuration_prefix:
  - custom_config_global_
  - custom_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by carlbuchmann
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