Search in sources :

Example 1 with CustomizationGlobalIPSettings

use of com.vmware.vim25.CustomizationGlobalIPSettings in project photon-model by vmware.

the class CustomizationClient method customizeDns.

public void customizeDns(List<String> dnsServers, List<String> dnsSearchDomains, CustomizationSpec template) {
    CustomizationGlobalIPSettings settings = new CustomizationGlobalIPSettings();
    if (dnsServers != null) {
        settings.getDnsServerList().addAll(dnsServers);
    }
    if (dnsSearchDomains != null) {
        settings.getDnsSuffixList().addAll(dnsSearchDomains);
    }
    template.setGlobalIPSettings(settings);
}
Also used : CustomizationGlobalIPSettings(com.vmware.vim25.CustomizationGlobalIPSettings)

Aggregations

CustomizationGlobalIPSettings (com.vmware.vim25.CustomizationGlobalIPSettings)1