Virtualization Cluster Export #1468

Closed
opened 2025-12-29 16:32:20 +01:00 by adam · 1 comment
Owner

Originally created by @LBegnaud on GitHub (Dec 19, 2017).

Issue type

[ ] Feature request
[x] Bug report
[ ] Documentation

Environment

  • Python version: Python 2.7.5
  • NetBox version: v2.2.7

Description

Exporting clusters doesn't include the site in the data. I believe it's this file that's the culprit (i'm not terribly knowledgeable with django)

https://github.com/digitalocean/netbox/blob/develop/netbox/virtualization/models.py

I believe the issue is the to_csv definition under Cluster class needs to include self.site as the 4th entry to match the csv_headers

I don't want to embarass myself with a PR (as i don't know how to test my code), but hopefully this is enough for a quick fix by someone more comfortable.

Originally created by @LBegnaud on GitHub (Dec 19, 2017). ### Issue type [ ] Feature request <!-- An enhancement of existing functionality --> [x] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> ### Environment * Python version: Python 2.7.5 * NetBox version: v2.2.7 ### Description Exporting clusters doesn't include the site in the data. I believe it's this file that's the culprit (i'm not terribly knowledgeable with django) https://github.com/digitalocean/netbox/blob/develop/netbox/virtualization/models.py I believe the issue is the `to_csv` definition under `Cluster` class needs to include `self.site` as the 4th entry to match the `csv_headers` I don't want to embarass myself with a PR (as i don't know how to test my code), but hopefully this is enough for a quick fix by someone more comfortable.
adam added the type: bug label 2025-12-29 16:32:20 +01:00
adam closed this issue 2025-12-29 16:32:20 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 20, 2017):

Yep, that's it. Will take care of it, thanks.

@jeremystretch commented on GitHub (Dec 20, 2017): Yep, that's it. Will take care of it, thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1468