Skip to content

Conversation

@pheus
Copy link
Contributor

@pheus pheus commented Dec 17, 2025

Fixes: #20309

Introduces ASDOT notation for ASN ranges to improve readability of large AS numbers. Adds start_asdot and end_asdot properties, updates the relevant table columns, and adjusts display logic so ranges can show both ASPLAIN and ASDOT where appropriate.

Note

To avoid repeating the same ASDOT conversion logic (// 65536 / % 65536) in multiple places, the conversion is implemented once as ASNField.to_asdot() and reused by the model properties. This keeps the helper IPAM-scoped while ensuring consistent formatting across all ASN consumers.

I also reordered methods/properties in ASNRange to follow the common NetBox model style for readability. If maintainers would prefer the simpler (more repetitive) inline conversion and/or don’t want the reordering, I’m happy to adjust.

Introduces ASDOT notation for ASN Ranges to improve readability of large
AS numbers. Adds `start_asdot` and `end_asdot` properties, columns, and
display logic for ASN ranges in the UI.

Fixes netbox-community#20309
@jnovinger jnovinger requested review from a team and jeremystretch and removed request for a team December 17, 2025 21:16
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.

Add ASNDOT notation column to ASN Ranges

1 participant