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 <[email protected]>
---
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 <[email protected]>
Gerrit-Reviewer: Livnat Peer <[email protected]>
Gerrit-Reviewer: Mike Kolesnik <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to