Ability to clone entire sites #1643

Closed
opened 2025-12-29 16:33:45 +01:00 by adam · 2 comments
Owner

Originally created by @RustyBower on GitHub (Mar 27, 2018).

Issue type

[X] Feature request
[ ] Bug report
[ ] Documentation

Similar to #33 and #1849, it would be nice to have the ability to clone an entire site. For instances where the same IP/hardware exists for a site (in my case a mobile rack), it would be super handy to be able to duplicate that configuration as many times as necessary.

Originally created by @RustyBower on GitHub (Mar 27, 2018). ### Issue type [X] Feature request <!-- An enhancement of existing functionality --> [ ] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> Similar to #33 and #1849, it would be nice to have the ability to clone an entire site. For instances where the same IP/hardware exists for a site (in my case a mobile rack), it would be super handy to be able to duplicate that configuration as many times as necessary.
adam closed this issue 2025-12-29 16:33:45 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 29, 2018):

I don't think this is feasible to implement. You would have to contend with automatically renaming and renumbering myriad objects: racks, devices, prefixes, VLANs, IPs, circuits, etc. A non-trivial amount of additional logic is needed in the form of a renaming/renumbering policy, which NetBox cannot provide on its own. It would be much more practical to script out your own unique logic for replicating a site using either the REST API or local ORM.

@jeremystretch commented on GitHub (Mar 29, 2018): I don't think this is feasible to implement. You would have to contend with automatically renaming and renumbering myriad objects: racks, devices, prefixes, VLANs, IPs, circuits, etc. A non-trivial amount of additional logic is needed in the form of a renaming/renumbering policy, which NetBox cannot provide on its own. It would be much more practical to script out your own unique logic for replicating a site using either the REST API or local ORM.
Author
Owner

@Yakelixir commented on GitHub (Mar 29, 2018):

Agreed. I wrote something a bit back to help with nuke and pave of any instance since i didn’t see that out there and the structure of the data wouldnt allow this easily.

@Yakelixir commented on GitHub (Mar 29, 2018): Agreed. I wrote something a bit back to help with nuke and pave of any instance since i didn’t see that out there and the structure of the data wouldnt allow this easily.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1643