Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom plugin to collect topology data for use by scripts #483

Open
wants to merge 13 commits into
base: dev
Choose a base branch
from

Conversation

jbemmel
Copy link
Collaborator

@jbemmel jbemmel commented Sep 22, 2022

Context: #482

For users that need topology information as input to per-node configuration scripts, in cases where this information is not 'naturally' included by the core modules.

One use case is generation of custom bgp policies with prefix filters that are configured for remote vlans (on other nodes), or communities for vrfs that are not locally present

jbemmel and others added 12 commits September 19, 2022 08:33
Co-authored-by: Jeroen van Bemmel <jeroen.van_bemmel@nokia.com>
…essions (fixes ipspace#460)

There are devices that need IPv6 enabled on an interface to make
unnumbered EBGP sessions work. Those devices might not be able to pass
the IPv4-only unnumbered EBGP test case because IPv6 is not enabled.

This commit adds 'ipv6: True' to interfaces that have at least one
unnumbered EBGP session. The change is made very late in the
transformation process (after the links module calculates the node
address families) and thus should not impact other routing protocols. It
does not impact other modules using address families (like VRF module).

An alternative might have been to add yet another flag (example:
ipv6_lla) but that would require changes in initial device configuration
templates.
@jbemmel jbemmel marked this pull request as draft September 22, 2022 15:50
@ipspace
Copy link
Owner

ipspace commented Feb 24, 2024

Revisiting this old idea: what if we have a setting that would specify what needs to be copied into Ansible 'all' group under 'system' dictionary and use that setting when creating Ansible inventory?

You could then use the 'combine' filter in Jinja2 templates if you want to have a merged view of local and system VLANs (for example), or just peek into system settings if you're so inclined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants