VmInit entity = template != null ? template : new VmInit(); if (model.isSetHost() && model.getHost().isSetAddress()) { entity.setHostname(model.getHost().getAddress()); List<String> dnsServers = new ArrayList<>(); for (Host host : model.getNetworkConfiguration().getDns().getServers().getHosts()) { if (host.isSetAddress()) { dnsServers.add(host.getAddress()); List<String> searchDomains = new ArrayList<>(); for (Host host : model.getNetworkConfiguration().getDns().getSearchDomains().getHosts()) { if (host.isSetAddress()) { searchDomains.add(host.getAddress());
entity.setClusterId(GuidUtils.asGuid(model.getCluster().getId())); if (model.isSetAddress()) { entity.setHostName(model.getAddress());
to.setActions(adaptOut(from.getActions())); if (from.isSetAddress()) { to.setAddress(from.getAddress());