Search in sources :

Example 1 with Dns

use of org.ovirt.engine.api.model.Dns in project ovirt-engine by oVirt.

the class V3DNSInAdapter method adapt.

@Override
public Dns adapt(V3DNS from) {
    Dns to = new Dns();
    if (from.isSetSearchDomains()) {
        to.setSearchDomains(new Hosts());
        to.getSearchDomains().getHosts().addAll(adaptIn(from.getSearchDomains().getHosts()));
    }
    if (from.isSetServers()) {
        to.setServers(new Hosts());
        to.getServers().getHosts().addAll(adaptIn(from.getServers().getHosts()));
    }
    return to;
}
Also used : Hosts(org.ovirt.engine.api.model.Hosts) Dns(org.ovirt.engine.api.model.Dns)

Aggregations

Dns (org.ovirt.engine.api.model.Dns)1 Hosts (org.ovirt.engine.api.model.Hosts)1