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);
}
Aggregations