mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Use device identifier instead of name
This commit is contained in:
@ -296,7 +296,7 @@ class IPAddress(models.Model):
|
|||||||
return ','.join([
|
return ','.join([
|
||||||
str(self.address),
|
str(self.address),
|
||||||
self.vrf.rd if self.vrf else '',
|
self.vrf.rd if self.vrf else '',
|
||||||
self.device.name if self.device else '',
|
self.device.identifier if self.device else '',
|
||||||
self.interface.name if self.interface else '',
|
self.interface.name if self.interface else '',
|
||||||
'True' if getattr(self, 'primary_for', False) else '',
|
'True' if getattr(self, 'primary_for', False) else '',
|
||||||
self.description,
|
self.description,
|
||||||
|
Reference in New Issue
Block a user