Yair Zaslavsky has posted comments on this change.

Change subject: core: Adds custom properties to VmNetworkInterface
......................................................................


Patch Set 18: (2 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/vm/UpdateVmInterfaceCommand.java
Line 81:             TransactionSupport.executeInNewTransaction(new 
TransactionMethod<Void>() {
Line 82:                 @Override
Line 83:                 public Void runInTransaction() {
Line 84:                     getCompensationContext().snapshotEntity(oldIface);
Line 85:                     getVmNetworkInterfaceDao().update(getInterface());
Once again - no need to snapshotEnity of the oldVmDevice?
Line 86:                     
oldVmDevice.setCustomProperties(getInterface().getCustomProperties());
Line 87:                     getDbFacade().getVmDeviceDao().update(oldVmDevice);
Line 88:                     getCompensationContext().stateChanged();
Line 89:                     return null;


....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/VmNicValidator.java
Line 65:                 
DevicePropertiesUtils.getInstance().validateProperties(version,
Line 66:                         VmDeviceGeneralType.INTERFACE,
Line 67:                         nic.getCustomProperties());
Line 68:         if (!errors.isEmpty()) {
Line 69:             VmHandler.handleCustomPropertiesError(errors, messages);
Ugly that this is in VmHandler, I would reconsider and move this to 
CustomPropertiesUtils or something like that.
Line 70:             return false;
Line 71:         }
Line 72:         return true;
Line 73:     }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I218db49043ddf0524178f6ff903e605bc0fe661a
Gerrit-PatchSet: 18
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Peřina <mper...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Alona Kaplan <alkap...@redhat.com>
Gerrit-Reviewer: Martin Peřina <mper...@redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skriva...@redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkole...@redhat.com>
Gerrit-Reviewer: Moti Asayag <masa...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to