Search in sources :

Example 1 with NodeConnectedHandler

use of org.opendaylight.netvirt.elan.l2gw.ha.handlers.NodeConnectedHandler in project netvirt by opendaylight.

the class NodeConnectedHandlerTest method setupForHANode.

@Before
public void setupForHANode() {
    d1UUID = java.util.UUID.nameUUIDFromBytes("d1uuid".getBytes()).toString();
    d2UUID = java.util.UUID.nameUUIDFromBytes("d2uuid".getBytes()).toString();
    d1NodePath = getInstanceIdentifier(d1UUID);
    d2NodePath = getInstanceIdentifier(d2UUID);
    haNodePath = getInstanceIdentifier(managerHAId);
    haNodeId = getNodeId(managerHAId);
    NodeId d1NodeId = d1NodePath.firstKeyOf(Node.class).getNodeId();
    String d1PsNodeIdVal = d1NodeId.getValue() + "/physicalswitch/" + switchName;
    d1PsNodePath = createInstanceIdentifier(d1PsNodeIdVal);
    NodeId d2NodeId = d2NodePath.firstKeyOf(Node.class).getNodeId();
    String d2PsNodeIdVal = d2NodeId.getValue() + "/physicalswitch/" + switchName;
    d2PsNodePath = createInstanceIdentifier(d2PsNodeIdVal);
    haPsNodePath = createInstanceIdentifier(haNodeId.getValue() + "/physicalswitch/" + switchName);
    nodeConnectedHandler = new NodeConnectedHandler(getDataBroker());
}
Also used : NodeConnectedHandler(org.opendaylight.netvirt.elan.l2gw.ha.handlers.NodeConnectedHandler) Node(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node) NodeId(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 NodeConnectedHandler (org.opendaylight.netvirt.elan.l2gw.ha.handlers.NodeConnectedHandler)1 NodeId (org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId)1 Node (org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node)1