Skip to content

Conversation

@Nimok
Copy link

@Nimok Nimok commented Mar 24, 2021

In jinja2 the ipv4 and ipv6 filters return true on ip address containing valid prefixes.
Jinjava currently returns false in these cases since no pattern-matching is done on prefixes.
Jinja2 also supports leading zeroes in both ipv4 address and prefix.
This patch fixes both of these issues.

Examples of valid addresses: 192.168.0.1/24 and 1200:0000:AB00:1235:0000:2552:7777:1313/128

@Nimok Nimok force-pushed the Add-prefix-validation-to-ipv4-and-ipv6 branch from 0143716 to ea8814f Compare March 24, 2021 19:02
@Nimok
Copy link
Author

Nimok commented Feb 7, 2024

@jasmith-hs Has anyone taken a look at this?

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.

1 participant