-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Next available ASN #8550
Comments
With the "next available" functionality for IP address and (in the upcoming v3.2 release) VLANs, NetBox references a parent prefix or group to determine the available range. So I think the first question here is, how would we want to define the available ranges? Introducing a separate model for this purpose (e.g. ASNRange) seems bit overkill, but maybe not. Another option would be to (IMO reasonably) assume that only private AS numbers can be allocated automatically, and to allow the client to specify a starting and/or ending number. |
I would assume that only private ASN can be automaticly allocated. If its a public asn that would have to be entered after getting the data from end customer. |
I would very much need this in 3.2 👍😉 I'd say something like ASNRange would be needed because the user may have need for several ASN ranges for different purposes. As a user I could then tag different ASNRanges differently for my different uses. For the reference, my current approach to allocating ASNs is to manually create tags like |
This is definitely one we need and would love to see added in the near future! |
Another +1 to this one :) I'm following a similar procedure to @markkuleinio using the netbox-bgp-plugin, where I pull all ASNs in a give range and loop through to find the first missing record. Something like @jeremystretch suggested to have the user specify start/end numbers in the API call would be plenty for my use case. |
Ok, so let's move this forward with the idea of introducing a new ASNRange model. Aside from a name and minimum & maximum AS number values, are there any other fields the model needs? How about tenancy assignment? |
I'd say tenancy and tags are the ones that I would use. |
This topic came up recently internally. It would be nice to be able to scope private ASNRanges for particular tenants or uses. |
* Move ASN to a separate module * Move ASNField from dcim to ipam * Introduce ASNRange model * Add relationship from ASN to ASNRange * Add an available-asns API endpoint * Add RIR assignment for ASNRange * Add standard tests * Move child ASNs to a tabbed view * Remove FK on ASN to ASNRange * Add tests for provisioning available ASNs * Add docs for ASNRange
NetBox version
v3.1.7
Feature type
New functionality
Proposed functionality
rfc6996 reserves a certain list of 16 / 32 bits asn for private asn. Simular as rfc1918 for ip-adresses.
https://datatracker.ietf.org/doc/html/rfc6996
Would it be possible to get a function for "get next available private asn" simular as we have next available ip, and next available prefix.
private asn's:
64512 - 65534
4200000000 - 4294967294
Use case
as an isp you could use this function to get available asn for corporate CE
in datacenter you could use this to get available asn to setup spine / leaf topology
Database changes
No response
External dependencies
No response
The text was updated successfully, but these errors were encountered: