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

Add prefix validation to ipv4 and ipv6 filter #624

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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