use of org.opendaylight.yang.gen.v1.urn.tech.pantheon.netconfdevice.network.topology.rpcs.rev180320.node.data.Node in project genius by opendaylight.
the class MDSALManager method writeGroupEntityInternal.
public void writeGroupEntityInternal(GroupEntity groupEntity, WriteTransaction tx) {
Group group = groupEntity.getGroupBuilder().build();
Node nodeDpn = buildDpnNode(groupEntity.getDpnId());
InstanceIdentifier<Group> groupInstanceId = buildGroupInstanceIdentifier(groupEntity.getGroupId(), nodeDpn);
tx.put(LogicalDatastoreType.CONFIGURATION, groupInstanceId, group, true);
}
use of org.opendaylight.yang.gen.v1.urn.tech.pantheon.netconfdevice.network.topology.rpcs.rev180320.node.data.Node in project genius by opendaylight.
the class MDSALManager method removeGroupInternal.
public void removeGroupInternal(BigInteger dpnId, long groupId, WriteTransaction tx) {
Node nodeDpn = buildDpnNode(dpnId);
if (groupExists(nodeDpn, groupId)) {
InstanceIdentifier<Group> groupInstanceId = buildGroupInstanceIdentifier(groupId, nodeDpn);
tx.delete(LogicalDatastoreType.CONFIGURATION, groupInstanceId);
} else {
LOG.debug("Group {} does not exist for dpn {}", groupId, dpnId);
}
}
use of org.opendaylight.yang.gen.v1.urn.tech.pantheon.netconfdevice.network.topology.rpcs.rev180320.node.data.Node in project genius by opendaylight.
the class MDSALManager method deleteBucket.
public void deleteBucket(BigInteger dpId, long groupId, long bucketId, WriteTransaction tx) {
Node nodeDpn = buildDpnNode(dpId);
if (groupExists(nodeDpn, groupId)) {
InstanceIdentifier<Bucket> bucketInstanceId = buildBucketInstanceIdentifier(groupId, bucketId, nodeDpn);
tx.delete(LogicalDatastoreType.CONFIGURATION, bucketInstanceId);
} else {
LOG.debug("Group {} does not exist for dpn {}", groupId, dpId);
}
}
use of org.opendaylight.yang.gen.v1.urn.tech.pantheon.netconfdevice.network.topology.rpcs.rev180320.node.data.Node in project genius by opendaylight.
the class MDSALManager method buildDpnNode.
protected Node buildDpnNode(BigInteger dpnId) {
NodeId nodeId = new NodeId("openflow:" + dpnId);
Node nodeDpn = new NodeBuilder().setId(nodeId).setKey(new NodeKey(nodeId)).build();
return nodeDpn;
}
use of org.opendaylight.yang.gen.v1.urn.tech.pantheon.netconfdevice.network.topology.rpcs.rev180320.node.data.Node in project genius by opendaylight.
the class HwvtepHACacheTest method newNodeInstanceIdentifier.
public static InstanceIdentifier<Node> newNodeInstanceIdentifier(String id) {
String nodeString = "hwvtep://uuid/" + java.util.UUID.nameUUIDFromBytes(id.getBytes()).toString();
NodeId nodeId = new NodeId(new Uri(nodeString));
NodeKey nodeKey = new NodeKey(nodeId);
TopologyKey topoKey = new TopologyKey(HwvtepSouthboundConstants.HWVTEP_TOPOLOGY_ID);
return InstanceIdentifier.builder(NetworkTopology.class).child(Topology.class, topoKey).child(Node.class, nodeKey).build();
}
Aggregations