metal-stack / metal-api

API to manage and control plane resources like machines, switches, operating system images, machine sizes, networks, IP addresses and more
GNU Affero General Public License v3.0
126 stars 9 forks source link

Prevent switch deletion when there are still machine connections #542

Open Gerrit91 opened 5 days ago

Gerrit91 commented 5 days ago

Currently it looks pretty dangerous to me that there is no validation at all. Maybe add a "force" parameter if we still want to support entity deletion without any validations.

Gerrit91 commented 4 days ago

There is even a metalctl switch delete implemented. So we should do this definitely soon.