ASN Uniqueness between Private RIR #9258

Closed
opened 2025-12-29 20:47:32 +01:00 by adam · 3 comments
Owner

Originally created by @richard25000 on GitHub (Feb 16, 2024).

Deployment Type

Self-hosted

NetBox Version

v3.7.1

Python Version

3.8

Steps to Reproduce

Create a private RIR of A
Create a private RIR of B

Expected Behavior

Add AS 65000 in A
Add AS 65000 in B

Both should work

Adding AS65000 again in either should fail.

Observed Behavior

Cannot add AS65000 in B as exists in A.

Do not want to disable global uniqueness, but like in VRF's where duplicate IP's may exist between VRF's it is expected that duplicate AS's would exist between private RIR's.

Originally created by @richard25000 on GitHub (Feb 16, 2024). ### Deployment Type Self-hosted ### NetBox Version v3.7.1 ### Python Version 3.8 ### Steps to Reproduce Create a private RIR of A Create a private RIR of B ### Expected Behavior Add AS 65000 in A Add AS 65000 in B Both should work Adding AS65000 again in either should fail. ### Observed Behavior Cannot add AS65000 in B as exists in A. Do not want to disable global uniqueness, but like in VRF's where duplicate IP's may exist between VRF's it is expected that duplicate AS's would exist between private RIR's.
adam closed this issue 2025-12-29 20:47:33 +01:00
Author
Owner

@jeremystretch commented on GitHub (Feb 16, 2024):

This is not a bug: Uniqueness for AS numbers is intentionally enforced globally. If you like like to propose changing this, please do so by submitting a detailed feature request including your use case.

@jeremystretch commented on GitHub (Feb 16, 2024): This is not a bug: Uniqueness for AS numbers is intentionally enforced globally. If you like like to propose changing this, please do so by submitting a detailed [feature request](https://github.com/netbox-community/netbox/issues/new?assignees=&labels=type%3A+feature&projects=&template=feature_request.yaml) including your use case.
Author
Owner

@richard25000 commented on GitHub (Feb 16, 2024):

Then my question would be, what does the private tick box actually do..?

@richard25000 commented on GitHub (Feb 16, 2024): Then my question would be, what does the private tick box actually do..?
Author
Owner

@jeremystretch commented on GitHub (Feb 16, 2024):

This is explained in the documentation. Please note that privacy and uniqueness are unrelated aspects.

@jeremystretch commented on GitHub (Feb 16, 2024): This is explained [in the documentation](https://docs.netbox.dev/en/stable/models/ipam/rir/#private). Please note that privacy and uniqueness are unrelated aspects.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9258