Search in sources :

Example 1 with HostIpConfigIpV6Address

use of com.vmware.vim25.HostIpConfigIpV6Address in project coprhd-controller by CoprHD.

the class EsxHostDiscoveryAdapter method discoverIp6Interface.

/**
 * Discovery of Ip interface
 *
 * @param host
 *            {@linkk Host}
 * @param ipInterface
 *            {@link IpInterface}
 * @param nic
 *            {@link HostVirtualNic}
 */
protected void discoverIp6Interface(Host host, IpInterface ipInterface, HostVirtualNic nic) {
    HostIpConfigIpV6Address config = getIp6Address(nic);
    setHostInterfaceRegistrationStatus(ipInterface, host);
    ipInterface.setHost(host.getId());
    ipInterface.setProtocol(Protocol.IPV6.name());
    ipInterface.setIpAddress(config.getIpAddress());
    ipInterface.setPrefixLength(config.getPrefixLength());
    ipInterface.setIsManualCreation(false);
    save(ipInterface);
}
Also used : HostIpConfigIpV6Address(com.vmware.vim25.HostIpConfigIpV6Address)

Aggregations

HostIpConfigIpV6Address (com.vmware.vim25.HostIpConfigIpV6Address)1