Gustavo Frederico Temple Pedrosa has posted comments on this change. Change subject: webadmin: Vnic hotplug validation - Patch 2 of 2 ......................................................................
Patch Set 5: (4 comments) .................................................... File frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/BaseEditVmInterfaceModel.java Line 71: initProfiles(); Line 72: Line 73: // Plug should be the last one updated, cause it controls the changeability of the other editor Line 74: getPlugged().setEntity(getNic().isPlugged()); Line 75: if (!hotPlugSupported) { Done Line 76: getPlugged().setChangeProhibitionReason(ConstantsManager.getInstance() Line 77: .getMessages() Line 78: .hotPlugNotSupported(getClusterCompatibilityVersion().toString())); Line 79: } Line 74: getPlugged().setEntity(getNic().isPlugged()); Line 75: if (!hotPlugSupported) { Line 76: getPlugged().setChangeProhibitionReason(ConstantsManager.getInstance() Line 77: .getMessages() Line 78: .hotPlugNotSupported(getClusterCompatibilityVersion().toString())); Done Line 79: } Line 80: getPlugged().setIsChangable(allowHotPlug()); Line 81: Line 82: initCommands(); .................................................... File frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/NewVmInterfaceModel.java Line 68: initSelectedType(); Line 69: getName().setEntity(AsyncDataProvider.getNewNicName(getVmNicList())); Line 70: initMAC(); Line 71: Line 72: if (!hotPlugSupported) { Done Line 73: getPlugged().setChangeProhibitionReason(ConstantsManager.getInstance() Line 74: .getMessages() Line 75: .hotPlugNotSupported(getClusterCompatibilityVersion().toString())); Line 76: } .................................................... File frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmInterfaceModel.java Line 158: * The user may also plug and unplug interfaces when the VM is down (regardless of hotplug support) Line 159: * or create an unplugged NIC in a running VM when there isn't support for hotplug. Line 160: * @return an boolean. Line 161: */ Line 162: public boolean allowHotPlug() { Done Line 163: return hotPlugSupported || getVmStatus().equals(VMStatus.Down); Line 164: } Line 165: Line 166: public Version getClusterCompatibilityVersion() { -- To view, visit http://gerrit.ovirt.org/19189 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I2434386f98c31a8d0fe44011ecadecb732ded19a Gerrit-PatchSet: 5 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Gustavo Frederico Temple Pedrosa <gustavo.pedr...@eldorado.org.br> Gerrit-Reviewer: Alona Kaplan <alkap...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Gustavo Frederico Temple Pedrosa <gustavo.pedr...@eldorado.org.br> Gerrit-Reviewer: Itamar Heim <ih...@redhat.com> Gerrit-Reviewer: Leonardo Bianconi <leonardo.bianc...@eldorado.org.br> Gerrit-Reviewer: Lior Vernia <lver...@redhat.com> Gerrit-Reviewer: Moti Asayag <masa...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: Sergey Gotliv <sgot...@redhat.com> Gerrit-Reviewer: Tomas Jelinek <tjeli...@redhat.com> Gerrit-Reviewer: Vitor de Lima <vitor.l...@eldorado.org.br> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches