Search in sources :

Example 1 with PodIdentifierKey

use of org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.coe.meta.rev180118.podidentifier.info.PodIdentifierKey in project netvirt by opendaylight.

the class CoeUtils method createPodNameToPodUuidMap.

public static void createPodNameToPodUuidMap(String podName, InstanceIdentifier<Pods> pod, WriteTransaction writeTransaction) {
    InstanceIdentifier<PodIdentifier> id = InstanceIdentifier.builder(PodidentifierInfo.class).child(PodIdentifier.class, new PodIdentifierKey(podName)).build();
    PodIdentifier podIdentifier = new PodIdentifierBuilder().setKey(new PodIdentifierKey(podName)).setPodName(podName).setPodUuid(pod).build();
    writeTransaction.put(LogicalDatastoreType.OPERATIONAL, id, podIdentifier);
    LOG.debug("Creating podnametouuid map {} to {}", podName, pod);
}
Also used : PodIdentifierKey(org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.coe.meta.rev180118.podidentifier.info.PodIdentifierKey) PodIdentifier(org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.coe.meta.rev180118.podidentifier.info.PodIdentifier) PodIdentifierBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.coe.meta.rev180118.podidentifier.info.PodIdentifierBuilder)

Aggregations

PodIdentifier (org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.coe.meta.rev180118.podidentifier.info.PodIdentifier)1 PodIdentifierBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.coe.meta.rev180118.podidentifier.info.PodIdentifierBuilder)1 PodIdentifierKey (org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.coe.meta.rev180118.podidentifier.info.PodIdentifierKey)1