Skip to content

ipwrap() Jinja filter #61933

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

Merged
merged 14 commits into from
Oct 12, 2022
Merged

ipwrap() Jinja filter #61933

merged 14 commits into from
Oct 12, 2022

Conversation

ggiesen
Copy link
Contributor

@ggiesen ggiesen commented Apr 8, 2022

What does this PR do?

What issues does this PR fix or reference?

Fixes: #61931

New Behavior

Adds ipwrap() jinja filter to wrap IPv6 addresses with brackets.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@ggiesen ggiesen requested a review from a team as a code owner April 8, 2022 18:10
@ggiesen ggiesen requested review from MKLeb and removed request for a team April 8, 2022 18:10
@OrangeDog
Copy link
Contributor

Would it make sense to implement this as an execution function rather than a filter? Then it can be used elsewhere too.

@MKLeb
Copy link
Contributor

MKLeb commented May 12, 2022

@ggiesen is this still WIP? Also, it seems like the test is failing.

@MKLeb
Copy link
Contributor

MKLeb commented Oct 5, 2022

Since this PR was submitted, the ip_bracket util function was added, so I switched this over to using that. @ggiesen any thoughts? Still WIP to you?

@MKLeb MKLeb changed the title WIP: ipwrap() Jinja filter ipwrap() Jinja filter Oct 10, 2022
Co-authored-by: Megan Wilhite <mwilhite@vmware.com>
@Ch3LL Ch3LL added the Sulfur v3006.0 release code name and version label Oct 10, 2022
@Ch3LL Ch3LL merged commit 47b23d3 into saltstack:master Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sulfur v3006.0 release code name and version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Jinja filter for wrapping IPv6 addresses in brackets ([ ])
6 participants