1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #495: Include tenant in prefix and IP CSV export

This commit is contained in:
Jeremy Stretch
2016-08-19 10:31:16 -04:00
parent ab90a06c54
commit 8cf2ae7851

View File

@ -275,6 +275,7 @@ class Prefix(CreatedUpdatedModel):
return ','.join([
str(self.prefix),
self.vrf.rd if self.vrf else '',
self.tenant.name if self.tenant else '',
self.site.name if self.site else '',
self.get_status_display(),
self.role.name if self.role else '',
@ -378,6 +379,7 @@ class IPAddress(CreatedUpdatedModel):
return ','.join([
str(self.address),
self.vrf.rd if self.vrf else '',
self.tenant.name if self.tenant else '',
self.device.identifier if self.device else '',
self.interface.name if self.interface else '',
'True' if is_primary else '',