Skip to content

ipwrap() Jinja filter - #61933

Merged
Ch3LL merged 14 commits into
saltstack:masterfrom
ggiesen:ipwrap_jinja_filter
Oct 12, 2022
Merged

Ch3LL merged 14 commits into
saltstack:masterfrom
ggiesen:ipwrap_jinja_filter

Conversation

@ggiesen

@ggiesen ggiesen commented Apr 8, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@MKLeb

MKLeb commented May 12, 2022

Copy link
Copy Markdown
Contributor

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

@MKLeb

MKLeb commented Oct 5, 2022

Copy link
Copy Markdown
Contributor

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
Comment thread doc/topics/jinja/index.rst Outdated
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