Delete site #8299
Replies: 1 comment 2 replies
-
That's because there is no direct relationship between IP address and site - see the model. One way that an IP address maybe associated indirectly with a site is through an interface to a device, or a vminterface to a virtual machine. A device has a mandatory, direct association with a site, so that's straightforward. However, a virtualmachine is only indirectly related to a site; it must be linked to a Cluster, but the Cluster-Site association is optional. The cluster may contain multiple devices, but they could be in different sites. You should find that if you delete a device or VM, this will automatically delete its interfaces and any IP addresses attached to those interfaces. (At least I believe this works through the GUI; I have not tested via the REST API) However, not all IP addresses are linked to an interface. There are other ways that an IP address can be indirectly related to a site: for example, the enclosing prefix may be linked to a site; and/or the prefix may be linked to a VLAN, and that VLAN may be associated to a site. Deleting a prefix does not automatically delete all the IP addresses within it (and you'd have to be careful if you did, since prefixes can also enclose other prefixes). You can, however, easily find all the IP addresses within a prefix, and delete them.
Why don't you list them here, so others can comment? Your 13 steps may not be appropriate for all users, but you can implement those 13 steps in a Custom Script if you wish. There are some example custom scripts you can base your work on here, and you could share your script when done in the same repository. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Do anyone have script to delete a site with its content or other idea?
Most of the objects can be deleted rather easily through the gui but not ip addresses as you can´t list them with site filter.
But all in all it´s a lot of steps to delete a site. I listed 13 steps.
Beta Was this translation helpful? Give feedback.
All reactions