nautobot-app-bgp-models icon indicating copy to clipboard operation
nautobot-app-bgp-models copied to clipboard

IDEA: ASDOT notation

Open mzbroch opened this issue 3 years ago • 7 comments

Environment

  • Nautobot version: 1.5.0
  • nautobot-bgp-models version: 0.7.1

Proposed Functionality

32-bit ASN notations. Nautobot should be able to read and convert ASN between AS plain and AS dot notations.

Use Case

This enables human readable ASNs.

mzbroch avatar Mar 07 '22 12:03 mzbroch

Any large scale modern layer 3 data center relies on 4-byte ASNs, which are most often represented using asdot notation. Definitely agree this is a necessity.

cmacnevin avatar Sep 08 '22 22:09 cmacnevin

Any large scale modern layer 3 data center relies on 4-byte ASNs, which are most often represented using asdot notation. Definitely agree this is a necessity.

We could explore how this could be implemented in a way to keep the consistency between UI/REST/GraphQL (how to support BigIntegerField (asplain) vs Char (asdot+))

mzbroch avatar Sep 09 '22 07:09 mzbroch

Ran into this this week! 👍🏻 Would be a great addition.

rifen avatar Jun 06 '23 23:06 rifen

@mattmiller87 @glennmatthews

We could solve this by adding two new fields on the ASN model: as_dot and as_dot_plus that would be computed and checked in the model's clean() method. This should provide sufficient type consistency for UI / API displaying and filtering.

mzbroch avatar Aug 10 '23 12:08 mzbroch

Do these even need to be database fields or can they just be computed @property items?

glennmatthews avatar Aug 11 '23 12:08 glennmatthews

Do these even need to be database fields or can they just be computed @property items?

This could work too, I was concerned with filtering of computed data but this might not be an issue

mzbroch avatar Aug 11 '23 13:08 mzbroch

Re @mzbroch 's comment above, here's something to consider:

This isn't a request in the original ask, but it would be awesome if we could actually plan ASNs with their own view, the same way we do with prefixes. Enabling asdot notation would mean this can be hierarchical - or at least a simple two-level hierarchy - which would actually be very useful when planning data center routing space.

So what Im suggesting here is that if it's a computed field, does that make it easier or harder to do something like this?

cmacnevin avatar Aug 11 '23 15:08 cmacnevin

This isn't a request in the original ask, but it would be awesome if we could actually plan ASNs with their own view, the same way we do with prefixes. Enabling asdot notation would mean this can be hierarchical - or at least a simple two-level hierarchy - which would actually be very useful when planning data center routing space.

As in the #205 , ASN ASDOT will be shown in the list view of ASNs , allowing for sorting as well. Although not hierarchical, this should be very similar user experience to the described above.

mzbroch avatar May 17 '24 15:05 mzbroch