mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 19:08:38 -06:00
Updating page title to include asdot notation
This commit is contained in:
parent
7c953b3070
commit
4d56f4972a
@ -125,6 +125,9 @@ class ASN(PrimaryModel):
|
||||
verbose_name_plural = 'ASNs'
|
||||
|
||||
def __str__(self):
|
||||
if self.asn > 65535:
|
||||
return 'AS{} ({}.{})'.format(self.asn, self.asn // 65536, self.asn % 65536)
|
||||
else:
|
||||
return f'AS{self.asn}'
|
||||
|
||||
def get_absolute_url(self):
|
||||
|
Loading…
Reference in New Issue
Block a user