Search in sources :

Example 1 with V3Slaves

use of org.ovirt.engine.api.v3.types.V3Slaves in project ovirt-engine by oVirt.

the class V3BondingOutAdapter method adapt.

@Override
public V3Bonding adapt(Bonding from) {
    V3Bonding to = new V3Bonding();
    if (from.isSetOptions()) {
        to.setOptions(new V3Options());
        to.getOptions().getOptions().addAll(adaptOut(from.getOptions().getOptions()));
    }
    if (from.isSetSlaves()) {
        to.setSlaves(new V3Slaves());
        to.getSlaves().getSlaves().addAll(adaptOut(from.getSlaves().getHostNics()));
    }
    return to;
}
Also used : V3Bonding(org.ovirt.engine.api.v3.types.V3Bonding) V3Options(org.ovirt.engine.api.v3.types.V3Options) V3Slaves(org.ovirt.engine.api.v3.types.V3Slaves)

Aggregations

V3Bonding (org.ovirt.engine.api.v3.types.V3Bonding)1 V3Options (org.ovirt.engine.api.v3.types.V3Options)1 V3Slaves (org.ovirt.engine.api.v3.types.V3Slaves)1