import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNode;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.FlowKey;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.FlowRef;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction.ApplyActionsCase;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction;
}
public static NodeId getNodeIdFromNodeIdentifier(final InstanceIdentifier<FlowCapableNode> nodeIdent) {
- return nodeIdent.firstKeyOf(Node.class, NodeKey.class).getId();
+ return nodeIdent.firstKeyOf(Node.class).getId();
}
public static String getFlowId(final FlowRef flowRef) {
- return flowRef.getValue().firstKeyOf(Flow.class, FlowKey.class).getId().getValue();
+ return flowRef.getValue().firstKeyOf(Flow.class).getId().getValue();
}
public static BigInteger getDpnIdFromNodeName(final InstanceIdentifier<FlowCapableNode> nodeIdent) {
- String nodeId = nodeIdent.firstKeyOf(Node.class, NodeKey.class).getId().getValue();
+ String nodeId = nodeIdent.firstKeyOf(Node.class).getId().getValue();
String dpId = nodeId.substring(nodeId.lastIndexOf(SEPARATOR) + 1);
return new BigInteger(dpId);
}