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

IP range / IP address overlap validators #113

Open
jean1 opened this issue Feb 4, 2025 · 0 comments
Open

IP range / IP address overlap validators #113

jean1 opened this issue Feb 4, 2025 · 0 comments

Comments

@jean1
Copy link

jean1 commented Feb 4, 2025

The following Netbox issue netbox-community/netbox#17339 mentions writing custom validators for overlapping range before creating an IP address but no example is provided.

jean1 added a commit to jean1/customizations that referenced this issue Feb 4, 2025
As suggested in issue netbox-community#113, provide custom validators that check for
overlaps between IP ranges and IP addresses:
- CheckAddressNotInRange, which validates that an IP address is not in any
  existing IP range,
- CheckRangeDoesNotIncludeAddress, which validates than an IP Range
  does not include any existing IP address.
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

1 participant