Search in sources :

Example 1 with ExternalIpsKey

use of org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.natservice.rev160111.ext.routers.routers.ExternalIpsKey in project netvirt by opendaylight.

the class NeutronvpnNatManager method addExternalFixedIpToExternalIpsList.

private void addExternalFixedIpToExternalIpsList(List<ExternalIps> externalIps, ExternalFixedIps fixedIps) {
    Uuid subnetId = fixedIps.getSubnetId();
    String ip = fixedIps.getIpAddress().getIpv4Address().getValue();
    ExternalIpsBuilder externalIpsBuilder = new ExternalIpsBuilder();
    externalIpsBuilder.setKey(new ExternalIpsKey(ip, subnetId));
    externalIpsBuilder.setIpAddress(ip);
    externalIpsBuilder.setSubnetId(subnetId);
    externalIps.add(externalIpsBuilder.build());
}
Also used : ExternalIpsKey(org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.natservice.rev160111.ext.routers.routers.ExternalIpsKey) Uuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid) ExternalIpsBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.natservice.rev160111.ext.routers.routers.ExternalIpsBuilder)

Aggregations

Uuid (org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid)1 ExternalIpsBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.natservice.rev160111.ext.routers.routers.ExternalIpsBuilder)1 ExternalIpsKey (org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.natservice.rev160111.ext.routers.routers.ExternalIpsKey)1