Search in sources :

Example 1 with Subnets

use of com.woorea.openstack.quantum.model.Subnets in project ovirt-engine by oVirt.

the class BaseNetworkProviderProxy method getAllSubnets.

@Override
public List<ExternalSubnet> getAllSubnets(ProviderNetwork network) {
    List<ExternalSubnet> result = new ArrayList<>();
    Subnets subnets = execute(getClient().subnets().list());
    for (Subnet subnet : subnets.getList()) {
        if (network.getExternalId().equals(subnet.getNetworkId())) {
            result.add(map(subnet, network));
        }
    }
    return result;
}
Also used : Subnets(com.woorea.openstack.quantum.model.Subnets) ExternalSubnet(org.ovirt.engine.core.common.businessentities.network.ExternalSubnet) ArrayList(java.util.ArrayList) Subnet(com.woorea.openstack.quantum.model.Subnet) ExternalSubnet(org.ovirt.engine.core.common.businessentities.network.ExternalSubnet)

Aggregations

Subnet (com.woorea.openstack.quantum.model.Subnet)1 Subnets (com.woorea.openstack.quantum.model.Subnets)1 ArrayList (java.util.ArrayList)1 ExternalSubnet (org.ovirt.engine.core.common.businessentities.network.ExternalSubnet)1