Java Code Examples for org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey#getNodeId()

The following examples show how to use org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey#getNodeId() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SouthboundUtils.java    From ovsdb with Eclipse Public License 1.0 4 votes vote down vote up
public static NodeId createManagedNodeId(InstanceIdentifier<Node> iid) {
    NodeKey nodeKey = iid.firstKeyOf(Node.class);
    return nodeKey.getNodeId();
}
 
Example 2
Source File: SouthboundMapper.java    From ovsdb with Eclipse Public License 1.0 4 votes vote down vote up
public static NodeId createManagedNodeId(final InstanceIdentifier<Node> iid) {
    NodeKey nodeKey = iid.firstKeyOf(Node.class);
    return nodeKey.getNodeId();
}
 
Example 3
Source File: OpenVSwitchUpdateCommand.java    From ovsdb with Eclipse Public License 1.0 4 votes vote down vote up
@VisibleForTesting
NodeId getNodeId(OpenVSwitch ovs) {
    NodeKey nodeKey = getInstanceIdentifier(ovs).firstKeyOf(Node.class);
    return nodeKey.getNodeId();
}
 
Example 4
Source File: OvsdbBridgeUpdateCommand.java    From ovsdb with Eclipse Public License 1.0 4 votes vote down vote up
private NodeId getNodeId(Bridge bridge) {
    NodeKey nodeKey = getInstanceIdentifier(bridge).firstKeyOf(Node.class);
    return nodeKey.getNodeId();
}
 
Example 5
Source File: GlobalUpdateCommand.java    From ovsdb with Eclipse Public License 1.0 4 votes vote down vote up
private NodeId getNodeId(Global hwvtep) {
    NodeKey nodeKey = getInstanceIdentifier(hwvtep).firstKeyOf(Node.class);
    return nodeKey.getNodeId();
}
 
Example 6
Source File: HwvtepPhysicalSwitchUpdateCommand.java    From ovsdb with Eclipse Public License 1.0 4 votes vote down vote up
private NodeId getNodeId(PhysicalSwitch phySwitch) {
    NodeKey nodeKey = getInstanceIdentifier(phySwitch).firstKeyOf(Node.class);
    return nodeKey.getNodeId();
}
 
Example 7
Source File: HwvtepSouthboundMapper.java    From ovsdb with Eclipse Public License 1.0 4 votes vote down vote up
public static NodeId createManagedNodeId(InstanceIdentifier<Node> iid) {
    NodeKey nodeKey = iid.firstKeyOf(Node.class);
    return nodeKey.getNodeId();
}