import org.opendaylight.openflowjava.protocol.api.connection.ConnectionAdapter;
import org.opendaylight.openflowjava.protocol.api.connection.ConnectionReadyListener;
import org.opendaylight.openflowjava.protocol.api.connection.SwitchConnectionHandler;
+import org.opendaylight.openflowjava.protocol.impl.core.SwitchConnectionProviderImpl;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.EchoReplyInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.EchoReplyInputBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.EchoRequestMessage;
LOGGER.debug("Reason: " + notification.getReason());
LOGGER.debug("TableId: " + notification.getTableId());
LOGGER.debug("Cookie: " + notification.getCookie());
- LOGGER.debug("Class: " + notification.getMatch().getMatchEntries().get(0).getOxmClass());
- LOGGER.debug("Field: " + notification.getMatch().getMatchEntries().get(0).getOxmMatchField());
+ LOGGER.debug("Class: " + notification.getMatch().getMatchEntry().get(0).getOxmClass());
+ LOGGER.debug("Field: " + notification.getMatch().getMatchEntry().get(0).getOxmMatchField());
LOGGER.debug("Datasize: " + notification.getData().length);
}
LOGGER.trace("MockPlugin().onConnectionReady()");
}
-
+ /**
+ * Initiates connection to device
+ * @param switchConnectionProvider
+ * @param host - host IP
+ * @param port - port number
+ */
+ public void initiateConnection(SwitchConnectionProviderImpl switchConnectionProvider, String host, int port) {
+ LOGGER.trace("MockPlugin().initiateConnection()");
+ switchConnectionProvider.initiateConnection(host, port);
+ }
}