Change in ovirt-engine[master]: engine: HostSetupNetworkValidator small cleanup

alkaplan at redhat.com alkaplan at redhat.com
Wed Apr 6 08:59:40 UTC 2016


Alona Kaplan has submitted this change and it was merged.

Change subject: engine: HostSetupNetworkValidator small cleanup
......................................................................


engine: HostSetupNetworkValidator small cleanup

- Changing some variable nams
attachmentsById -> existingAttachmentsById
networkAttachmentsByNetworkId -> networkAttachmentsFromParamsByNetworkId
- Adding new usefull map
existingAttachmentsByNetworkId
- Remove unneeded check from - 'notRemovingLabeledNetworks'
(patch https://gerrit.ovirt.org/#/c/55687 makes it unneeded)
- Changing 'validateNotRemovingUsedNetworkByVms()' to check only one
network at a time, and not all the networks each iteration.

Change-Id: I9a5e64696a77547bcce857bd348e401ab6e10add
Bug-Url: https://bugzilla.redhat.com/1322947
Signed-off-by: Alona Kaplan <alkaplan at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/HostSetupNetworksValidator.java
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/network/host/HostSetupNetworksValidatorTest.java
2 files changed, 25 insertions(+), 62 deletions(-)

Approvals:
  Marcin Mirecki: Looks good to me, but someone else must approve
  Alona Kaplan: Verified; Passed CI tests
  Moti Asayag: Looks good to me, approved



-- 
To view, visit https://gerrit.ovirt.org/55632
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I9a5e64696a77547bcce857bd348e401ab6e10add
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alona Kaplan <alkaplan at redhat.com>
Gerrit-Reviewer: Alona Kaplan <alkaplan at redhat.com>
Gerrit-Reviewer: Edward Haas <edwardh at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Marcin Mirecki <mmirecki at redhat.com>
Gerrit-Reviewer: Martin Mucha <mmucha at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: Yevgeny Zaspitsky <yzaspits at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list