Enhance ASN model #10310

Open
opened 2025-12-29 21:29:46 +01:00 by adam · 1 comment
Owner

Originally created by @dmulyalin on GitHub (Oct 2, 2024).

NetBox version

v4.1.2

Feature type

Data model extension

Proposed functionality

Extend ASN model with new "Role" and "Name" fields

Use case

BGP ASNs have roles and names, being able to capture that information natively in Netbox instead of using custom fields can help to document networks.

For example many companies I worked with name their ASNs like CompanyXYZ_public_ASN or LAB123_ASN or customer_foo_asn.

At the same time there can be more then single ASN used by individual device using local-as feature, in that case being able to capture ASN role becomes also helpful, like DEFAULT role - device global ASN for BGP process or VRF_XYZ role - ASN for specific VRF use on the device using local-as

Database changes

ASN model need to have these new fields added:
role - reference to Prefi&Vlan roles objects
name - string

External dependencies

None

Originally created by @dmulyalin on GitHub (Oct 2, 2024). ### NetBox version v4.1.2 ### Feature type Data model extension ### Proposed functionality Extend ASN model with new "Role" and "Name" fields ### Use case BGP ASNs have roles and names, being able to capture that information natively in Netbox instead of using custom fields can help to document networks. For example many companies I worked with name their ASNs like CompanyXYZ_public_ASN or LAB123_ASN or customer_foo_asn. At the same time there can be more then single ASN used by individual device using local-as feature, in that case being able to capture ASN role becomes also helpful, like DEFAULT role - device global ASN for BGP process or VRF_XYZ role - ASN for specific VRF use on the device using local-as ### Database changes ASN model need to have these new fields added: role - reference to Prefi&Vlan roles objects name - string ### External dependencies None
Author
Owner

@jeremystretch commented on GitHub (Feb 6, 2025):

I understand the use case for introducing a functional role (which would require a new model), but I'm not sure about name. It seems like that could be confusing.

@jeremystretch commented on GitHub (Feb 6, 2025): I understand the use case for introducing a functional role (which would require a new model), but I'm not sure about name. It seems like that could be confusing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10310