Mike Kolesnik has posted comments on this change.
Change subject: engine: Add SP for retrieving vms by vnic profile
......................................................................
Patch Set 24: (3 inline comments)
....................................................
File
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmDAO.java
Line 262: * @param vNicProfileId
Line 263: * the vm network interface profile id
Line 264: * @return the list of VMs
Line 265: */
Line 266: List<VM> getAllForVnicProfile(Guid vNicProfileId);
Name of parameter should probably be vnicProfileId since you're treating VNIC
as one word, otherwise it doesn't match up with the method naming that you used
(VnicProfile should be VNicProfile?)..
....................................................
File
backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/VmDAOTest.java
Line 413: * Ensures that no vms are fetched since the network is not
assigned to any cluster
Line 414: */
Line 415: @Test
Line 416: public void testGetAllForVnicProfileEmpty() {
Line 417: List<VM> result =
dao.getAllForNetwork(FixturesTool.NETWORK_NO_CLUSTERS_ATTACHED);
This is calling getAllForNetwork?
Line 418: assertNotNull(result);
Line 419: assertTrue(result.isEmpty());
Line 420: }
Line 421:
....................................................
File packaging/dbscripts/vms_sp.sql
Line 1127: WHERE EXISTS (
Line 1128: SELECT 1
Line 1129: FROM vm_interface
Line 1130: INNER JOIN vnic_profiles
Line 1131: ON vnic_profiles.id = vm_interface.vnic_profile_id
Why join?
Seems redundant since you don't use it later..
Line 1132: WHERE vm_interface.vnic_profile_id = v_vnic_profile_id
Line 1133: AND vm_interface.vm_guid = vms.vm_guid);
Line 1134: END; $procedure$
Line 1135: LANGUAGE plpgsql;
--
To view, visit http://gerrit.ovirt.org/16669
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib474565480e763030a99b429d3054ed2debfcff2
Gerrit-PatchSet: 24
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <[email protected]>
Gerrit-Reviewer: Alona Kaplan <[email protected]>
Gerrit-Reviewer: Mike Kolesnik <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches