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

dhcpv6_relays for ipv6 dhcpv6 relays in vxlans vlan tree #295

Open
makzdot opened this issue Mar 13, 2023 · 2 comments
Open

dhcpv6_relays for ipv6 dhcpv6 relays in vxlans vlan tree #295

makzdot opened this issue Mar 13, 2023 · 2 comments

Comments

@makzdot
Copy link

makzdot commented Mar 13, 2023

Is your feature request related to a problem? Please describe.
We CNAAS-NMS has an option for configuring dhcp_relays. because (for example) Juniper has a different config tree for dhcpv6 we have to 'detect' in Jinja if a dhcp relay is ipv4 or ipv6. This makes the jinja2 templates hacky and ugly.

Describe the solution you'd like
Thats why It would be prettier tot just include an option dhcpv6_relays as a list of ipv6 addresses

Describe alternatives you've considered
The alternative is to solve it in jinja2 templates. But that can become hacky and cumbersome....at least for a Juniper

Additional context
None

@lunkwill42
Copy link
Collaborator

Alternately, maybe it would be useful to have a generic template filter that can filter any list of IP addresses based on address family?

E.g. (pseudo-code):

{{ for addr in filter_ip_family(dhcp_relays, version=6) }}

@makzdot
Copy link
Author

makzdot commented Mar 30, 2023

Alternately, maybe it would be useful to have a generic template filter that can filter any list of IP addresses based on address family?

E.g. (pseudo-code):

{{ for addr in filter_ip_family(dhcp_relays, version=6) }}

Ah that could probably work let me play with that for a moment. Thanks

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

No branches or pull requests

2 participants