Change in ovirt-engine[master]: engine: Change SetupNetworks diff recognition

mkolesni at redhat.com mkolesni at redhat.com
Mon Jun 18 13:57:17 UTC 2012


Mike Kolesnik has submitted this change and it was merged.

Change subject: engine: Change SetupNetworks diff recognition
......................................................................


engine: Change SetupNetworks diff recognition

SetupNetworks would recognize that NIC definitions changed by comparing
the new NIC from parameters, to the old NIC from the DB. If the NIC is
different then the network/bond is a candidate to be sent to the Host
as changed.

This approach is problematic if a parameter that is not being sent to
the Host is changed, and in turn causes a "false positive" recognition.

Changed the difference recognition to take into account only parameters
that are later on passed to the host:
  Network name, Boot protocol, Specific parameters for Static:
  IP, Gateway, Netmask.

The bond recognition was changed to take into account only when the
bond itself had been modified (either added or changed).
This will allow changing networks & bonds individually, without needing
to change the underlying devices if they didn't change.

Change-Id: I1908508aee8b1e1dac8e69b86f6cee5380664be6
Signed-off-by: Mike Kolesnik <mkolesni at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SetupNetworksHelper.java
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/SetupNetworksHelperTest.java
2 files changed, 178 insertions(+), 14 deletions(-)

Approvals:
  Mike Kolesnik: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1908508aee8b1e1dac8e69b86f6cee5380664be6
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Mike Kolesnik <mkolesni at redhat.com>
Gerrit-Reviewer: Livnat Peer <lpeer at redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkolesni at redhat.com>



More information about the Engine-commits mailing list