use of org.ovirt.engine.core.common.businessentities.network.IpV6Address in project ovirt-engine by oVirt.
the class IpConfigurationCompleterTest method createIpv6Address.
private IpV6Address createIpv6Address() {
final IpV6Address ipv6Address = new IpV6Address();
ipv6Address.setBootProtocol(Ipv6BootProtocol.AUTOCONF);
ipv6Address.setAddress(IPV6_ADDRESS);
ipv6Address.setPrefix(IPV6_PREFIX);
ipv6Address.setGateway(IPV6_GATEWAY);
return ipv6Address;
}
use of org.ovirt.engine.core.common.businessentities.network.IpV6Address in project ovirt-engine by oVirt.
the class IpConfigurationCompleterTest method testFillInUnsetIpConfigsIpv4.
@Test
public void testFillInUnsetIpConfigsIpv4() {
final IpV6Address ipv6Address = createIpv6Address();
ipConfiguration.setIpV6Addresses(Collections.singletonList(ipv6Address));
underTest.fillInUnsetIpConfigs(networkAttachments);
assertIpv4DefaultValues(networkAttachment);
assertIpv6Values(networkAttachment, is(Ipv6BootProtocol.AUTOCONF), is(IPV6_ADDRESS), is(IPV6_PREFIX), is(IPV6_GATEWAY));
}
use of org.ovirt.engine.core.common.businessentities.network.IpV6Address in project ovirt-engine by oVirt.
the class NetworkConfiguratorTest method assertIpv6Details.
private void assertIpv6Details(IpConfiguration ipConfiguration) {
assertThat(ipConfiguration.getIpV6Addresses(), hasSize(1));
final IpV6Address ipv6Address = ipConfiguration.getIpV6Addresses().get(0);
assertThat(ipv6Address.getAddress(), is(IPV6_ADDRESS));
assertThat(ipv6Address.getBootProtocol(), is(Ipv6BootProtocol.STATIC_IP));
assertThat(ipv6Address.getAddress(), is(IPV6_ADDRESS));
}
use of org.ovirt.engine.core.common.businessentities.network.IpV6Address in project ovirt-engine by oVirt.
the class HostNetworkAttachmentsPersisterTest method createIpv6Address.
private IpV6Address createIpv6Address() {
IpV6Address address = new IpV6Address();
address.setAddress(IPV6_ADDRESS);
address.setPrefix(IPV6_PREFIX);
address.setGateway(IPV6_GATEWAY);
address.setBootProtocol(Ipv6BootProtocol.AUTOCONF);
return address;
}
use of org.ovirt.engine.core.common.businessentities.network.IpV6Address in project ovirt-engine by oVirt.
the class NetworkCommonUtils method createDefaultIpConfiguration.
public static IpConfiguration createDefaultIpConfiguration() {
IpConfiguration ipConfiguration = new IpConfiguration();
IPv4Address iPv4Address = createDefaultIpv4Address();
ipConfiguration.getIPv4Addresses().add(iPv4Address);
IpV6Address ipv6Address = createDefaultIpv6Address();
ipConfiguration.getIpV6Addresses().add(ipv6Address);
return ipConfiguration;
}
Aggregations