Tal Nisan has submitted this change and it was merged.
Change subject: engine: allow updating/deleting a network with unplugged vnics only
......................................................................
engine: allow updating/deleting a network with unplugged vnics only
Allow updating/deleting a network from a host only in case when the
related vnics are unplugged. The case when plugged vnic is unlinked
doesn't allow amending the underlying network.
Bug-Url:
https://bugzilla.redhat.com/1115101
Change-Id: Ib57fd905811bbbb60ef06bae15d0c42518132596
Signed-off-by: Yevgeny Zaspitsky <yzaspits(a)redhat.com>
(cherry picked from commit eebc2a7a83d2e1861d1c95be86f00b586e7c2899)
---
A
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/common/predicates/VmNetworkCanBeUpdatedPredicate.java
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/VmInterfaceManager.java
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/dc/UpdateNetworkCommand.java
A
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/common/predicates/VmNetworkCanBeUpdatedPredicateTest.java
4 files changed, 60 insertions(+), 2 deletions(-)
Approvals:
Moti Asayag: Looks good to me, approved
Yevgeny Zaspitsky: Verified
--
To view, visit
http://gerrit.ovirt.org/30098
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib57fd905811bbbb60ef06bae15d0c42518132596
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Yevgeny Zaspitsky <yzaspits(a)redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag(a)redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan(a)redhat.com>
Gerrit-Reviewer: Yevgeny Zaspitsky <yzaspits(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server