Correct validation when assigning IPv6 addresses to interfaces #8161

Closed
opened 2025-12-29 20:33:16 +01:00 by adam · 2 comments
Owner

Originally created by @decoupca on GitHub (Jun 5, 2023).

NetBox version

v3.5.3

Feature type

Change to existing functionality

Proposed functionality

Remove current validation that prevents assigning non-/127 or non-/128 address to an interface.

Use case

IPv6 does not use network IDs or broadcast addresses and therefore, unlike IPv4, this check prevents valid uses of IPv6 addresses. Furthermore, current validation logic is buggy, as /127s are erroneously identified as broadcast addresses.

Database changes

No response

External dependencies

No response

Originally created by @decoupca on GitHub (Jun 5, 2023). ### NetBox version v3.5.3 ### Feature type Change to existing functionality ### Proposed functionality Remove current validation that prevents assigning non-/127 or non-/128 address to an interface. ### Use case IPv6 does not use network IDs or broadcast addresses and therefore, unlike IPv4, this check prevents valid uses of IPv6 addresses. Furthermore, current validation logic is buggy, as /127s are erroneously identified as broadcast addresses. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 20:33:16 +01:00
adam closed this issue 2025-12-29 20:33:16 +01:00
Author
Owner

@decoupca commented on GitHub (Jun 5, 2023):

Opened to separately address the IPv6 issue raised in #12687. I have a PR ready if this is approved.

@decoupca commented on GitHub (Jun 5, 2023): Opened to separately address the IPv6 issue raised in #12687. I have a PR ready if this is approved.
Author
Owner

@decoupca commented on GitHub (Jun 5, 2023):

Per comments in #12687 which describes correct validation for IPv6 validation, closing this and re-opening as a bug report.

@decoupca commented on GitHub (Jun 5, 2023): Per comments in #12687 which describes correct validation for IPv6 validation, closing this and re-opening as a bug report.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8161