Change status of site-related object when site is retired #7700

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

Originally created by @mplanicka on GitHub (Mar 1, 2023).

NetBox version

v3.4.4

Feature type

New functionality

Proposed functionality

It would be great when site is retired, to change status of all site related objects eg. prefixes, vlans, devices etc. to deprecated (IPAM) and decommissioning/inventory (DCIM).

Use case

No need to manually change status of all site related objects after site is retired.

Database changes

none

External dependencies

none

Originally created by @mplanicka on GitHub (Mar 1, 2023). ### NetBox version v3.4.4 ### Feature type New functionality ### Proposed functionality It would be great when site is retired, to change status of all site related objects eg. prefixes, vlans, devices etc. to deprecated (IPAM) and decommissioning/inventory (DCIM). ### Use case No need to manually change status of all site related objects after site is retired. ### Database changes none ### External dependencies none
adam added the type: feature label 2025-12-29 20:27:13 +01:00
adam closed this issue 2025-12-29 20:27:14 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 1, 2023):

I'm afraid this isn't something we can build into NetBox as it makes assumptions about the intended states of various objects which may or may not be applicable for a given organization or user. Instead, what you can do is write a custom script that can be used to retire a site and update its related objects according to your specific needs.

@jeremystretch commented on GitHub (Mar 1, 2023): I'm afraid this isn't something we can build into NetBox as it makes assumptions about the intended states of various objects which may or may not be applicable for a given organization or user. Instead, what you can do is write a [custom script](https://docs.netbox.dev/en/stable/customization/custom-scripts/) that can be used to retire a site and update its related objects according to your specific needs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7700