package org.opendaylight.openflowplugin.droptest;
+import com.google.common.base.Preconditions;
import org.eclipse.osgi.framework.console.CommandInterpreter;
import org.eclipse.osgi.framework.console.CommandProvider;
import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext;
import org.opendaylight.openflowplugin.testcommon.DropTestRpcProvider;
import org.osgi.framework.BundleContext;
-import com.google.common.base.Preconditions;
-
+/**
+ *
+ * use the same methods defined via karaf commands (defined in drop-test-karaf artifact)
+ * Can be deleted after patch https://git.opendaylight.org/gerrit/#/c/15660/ for bug 2750 will be merged.
+ *
+ */
+@Deprecated
public class DropTestCommandProvider implements CommandProvider {
private final BundleContext ctx;
this.sessionInitiated = true;
}
- public void _dropAllPackets(final CommandInterpreter ci) {
+ public void dropAllPackets(final CommandInterpreter ci) {
if (sessionInitiated) {
String onoff = ci.nextArgument();
if (onoff.equalsIgnoreCase("on")) {
}
}
- public void _dropAllPacketsRpc(final CommandInterpreter ci) {
+ public void dropAllPacketsRpc(final CommandInterpreter ci) {
if (sessionInitiated) {
String onoff = ci.nextArgument();
if (onoff.equalsIgnoreCase("on")) {
}
}
- public void _showDropStats(final CommandInterpreter ci) {
+ public void showDropStats(final CommandInterpreter ci) {
if (sessionInitiated) {
ci.println("RPC Test Statistics: " + this.rpcProvider.getStats().toString());
ci.println("FRM Test Statistics: " + this.provider.getStats().toString());
}
}
- public void _clearDropStats(final CommandInterpreter ci) {
+ public void clearDropStats(final CommandInterpreter ci) {
if (sessionInitiated) {
ci.print("Clearing drop statistics... ");
this.rpcProvider.clearStats();
this.sessionInitiated = true;
}
- public void _sendOutputMsg(final CommandInterpreter ci) {
+ public void sendOutputMsg(final CommandInterpreter ci) {
/* Sending package OUT */
LOG.debug("SendOutMsg");
if (sessionInitiated) {
}
}
- public void _sendPacketOutputMsg(final CommandInterpreter ci) {
+ public void sendPacketOutputMsg(final CommandInterpreter ci) {
/* Sending package OUT with action */
LOG.debug("SendOutMsgWithAction");
if (sessionInitiated) {
}
}
- public void _sendOutTopologyMsg(final CommandInterpreter ci) {
+ public void sendOutTopologyMsg(final CommandInterpreter ci) {
/* Sending package OUT */
LOG.debug("SendOutTopologyMsg");