Search in sources :

Example 1 with VnicProfileMappingModel

use of org.ovirt.engine.ui.uicommonweb.models.vms.register.VnicProfileMappingModel in project ovirt-engine by oVirt.

the class RegisterEntityModel method onVnicProfileMappingCommand.

private void onVnicProfileMappingCommand() {
    Map<Cluster, Set<VnicProfileMappingEntity>> result = updateExternalVnicProfilesPerTargetCluster();
    setExternalVnicProfilesPerTargetCluster(result);
    // pass the updated profile mappings to the model so it can display updated values in the dialog
    vnicProfileMappingModel = new VnicProfileMappingModel(this, externalVnicProfilesPerTargetCluster);
    // while initializing the model the current vnic profiles are fetched from the backend and the target profiles
    // are adjusted accordingly
    vnicProfileMappingModel.initialize();
    setWindow(vnicProfileMappingModel);
}
Also used : VnicProfileMappingModel(org.ovirt.engine.ui.uicommonweb.models.vms.register.VnicProfileMappingModel) HashSet(java.util.HashSet) Set(java.util.Set) Cluster(org.ovirt.engine.core.common.businessentities.Cluster)

Aggregations

HashSet (java.util.HashSet)1 Set (java.util.Set)1 Cluster (org.ovirt.engine.core.common.businessentities.Cluster)1 VnicProfileMappingModel (org.ovirt.engine.ui.uicommonweb.models.vms.register.VnicProfileMappingModel)1