use of org.ovirt.engine.core.common.businessentities.network.Network in project ovirt-engine by oVirt.
the class SyncNetworkProviderCommandTest method getNetworkList.
private List<Network> getNetworkList(String externalId) {
ProviderNetwork providerNetwork = new ProviderNetwork();
providerNetwork.setExternalId(externalId);
providerNetwork.setProviderId(PROVIDER_ID);
Network network = new Network();
network.setProvidedBy(providerNetwork);
return Collections.singletonList(network);
}
use of org.ovirt.engine.core.common.businessentities.network.Network in project ovirt-engine by oVirt.
the class PersistentHostSetupNetworksParametersFactoryTest method createNetwork.
private Network createNetwork(String name) {
Network network = new Network();
network.setId(Guid.newGuid());
network.setName(name);
return network;
}
use of org.ovirt.engine.core.common.businessentities.network.Network in project ovirt-engine by oVirt.
the class RefreshNetworksParametersFactoryTest method createNetwork.
private Network createNetwork() {
Network network = new Network();
network.setId(Guid.newGuid());
return network;
}
use of org.ovirt.engine.core.common.businessentities.network.Network in project ovirt-engine by oVirt.
the class EntityDaoImplTest method testGetEntityNameByIdAndTypeForNetwork.
@Test
public void testGetEntityNameByIdAndTypeForNetwork() {
Network network = networkDao.get(NETWORK_ID);
assertNotNull(network);
String name = network.getName();
assertEquals(name, underTest.getEntityNameByIdAndType(NETWORK_ID, VdcObjectType.Network));
}
use of org.ovirt.engine.core.common.businessentities.network.Network in project ovirt-engine by oVirt.
the class GetNetworksByIscsiBondIdQuery method executeQueryCommand.
@Override
protected void executeQueryCommand() {
List<Network> networks = new ArrayList<>();
for (Guid id : getNetworksIds()) {
networks.add(networkDao.get(id));
}
getQueryReturnValue().setReturnValue(networks);
}
Aggregations