Change in ovirt-engine[master]: engine: Add validations for removing a network

masayag at redhat.com masayag at redhat.com
Wed Jan 9 07:52:37 UTC 2013


Moti Asayag has submitted this change and it was merged.

Change subject: engine: Add validations for removing a network
......................................................................


engine: Add validations for removing a network

The patch adds several validations for removing a network:
1. Prevent removing a management network
2. Prevent removing a network used by VMs
3. Prevent removing a network which is attached to hosts
4. Prevent removing a network which is used by templates.

Change-Id: Ia3b797f79aac104ff73d5ad21a87ede259276b4c
Signed-off-by: Moti Asayag <masayag at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/dc/NetworkCommon.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/dc/RemoveNetworkCommand.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/dc/UpdateNetworkCommand.java
3 files changed, 84 insertions(+), 52 deletions(-)

Approvals:
  Moti Asayag: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/10743
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia3b797f79aac104ff73d5ad21a87ede259276b4c
Gerrit-PatchSet: 9
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkolesni at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>



More information about the Engine-commits mailing list