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());
}
Aggregations