use of org.ovirt.engine.core.common.businessentities.network.NetworkQoS in project ovirt-engine by oVirt.
the class NewNetworkQoSModel method executeSave.
@Override
protected void executeSave() {
// New network QoS
final QosParametersBase<NetworkQoS> parameters = new QosParametersBase<>();
parameters.setQos(networkQoS);
Frontend.getInstance().runAction(ActionType.AddNetworkQoS, parameters, result -> {
ActionReturnValue retVal = result.getReturnValue();
boolean succeeded = false;
if (retVal != null && retVal.getSucceeded()) {
succeeded = true;
networkQoS.setId((Guid) retVal.getActionReturnValue());
}
postSaveAction(succeeded);
});
}
Aggregations