Browse Source

Fixes #763: Added missing fields to CSV exports

Jeremy Stretch 8 years ago
parent
commit
cf64ef342f
2 changed files with 4 additions and 0 deletions
  1. 1 0
      netbox/dcim/models.py
  2. 3 0
      netbox/ipam/models.py

+ 1 - 0
netbox/dcim/models.py

@@ -408,6 +408,7 @@ class Rack(CreatedUpdatedModel, CustomFieldModel):
             self.get_type_display() if self.type else '',
             str(self.width),
             str(self.u_height),
+            'True' if self.desc_units else '',
         ])
 
     @property

+ 3 - 0
netbox/ipam/models.py

@@ -324,8 +324,11 @@ class Prefix(CreatedUpdatedModel, CustomFieldModel):
             self.vrf.rd if self.vrf else '',
             self.tenant.name if self.tenant else '',
             self.site.name if self.site else '',
+            self.vlan.group.name if self.vlan and self.vlan.group else '',
+            str(self.vlan.vid) if self.vlan else '',
             self.get_status_display(),
             self.role.name if self.role else '',
+            'True' if self.is_pool else '',
             self.description,
         ])