Search in sources :

Example 1 with SerialNumberPolicy

use of org.ovirt.engine.core.common.businessentities.SerialNumberPolicy in project ovirt-engine by oVirt.

the class VmSerialNumberBuilder method buildVmSerialNumberFromConfig.

private void buildVmSerialNumberFromConfig() {
    final SerialNumberPolicy policy = Config.getValue(ConfigValues.DefaultSerialNumberPolicy);
    final String customSerialNumber = Config.getValue(ConfigValues.DefaultCustomSerialNumber);
    setSerialNumber(getSerialNumberFromPolicy(policy, customSerialNumber));
}
Also used : SerialNumberPolicy(org.ovirt.engine.core.common.businessentities.SerialNumberPolicy)

Aggregations

SerialNumberPolicy (org.ovirt.engine.core.common.businessentities.SerialNumberPolicy)1