Class OpenflowpluginTestCommandProvider
java.lang.Object
org.opendaylight.openflowplugin.test.OpenflowpluginTestCommandProvider
- All Implemented Interfaces:
AutoCloseable
,org.eclipse.osgi.framework.console.CommandProvider
@Singleton
public class OpenflowpluginTestCommandProvider
extends Object
implements org.eclipse.osgi.framework.console.CommandProvider, AutoCloseable
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionOpenflowpluginTestCommandProvider
(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationService notificationService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
_addMDFlow
(org.eclipse.osgi.framework.console.CommandInterpreter ci) Adds a flow.void
_modifyMDFlow
(org.eclipse.osgi.framework.console.CommandInterpreter ci) void
_perfFlowTest
(org.eclipse.osgi.framework.console.CommandInterpreter ci) void
_removeMDFlow
(org.eclipse.osgi.framework.console.CommandInterpreter ci) void
_testAllFlows
(org.eclipse.osgi.framework.console.CommandInterpreter ci) void
close()
getHelp()
-
Constructor Details
-
OpenflowpluginTestCommandProvider
@Inject public OpenflowpluginTestCommandProvider(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationService notificationService)
-
-
Method Details
-
close
@PreDestroy public void close()- Specified by:
close
in interfaceAutoCloseable
-
_removeMDFlow
public void _removeMDFlow(org.eclipse.osgi.framework.console.CommandInterpreter ci) -
_addMDFlow
public void _addMDFlow(org.eclipse.osgi.framework.console.CommandInterpreter ci) Adds a flow.- Parameters:
ci
- arguments: switchId flowType tableNum, e.g.: addMDFlow openflow:1 f1 42
-
_modifyMDFlow
public void _modifyMDFlow(org.eclipse.osgi.framework.console.CommandInterpreter ci) -
getHelp
- Specified by:
getHelp
in interfaceorg.eclipse.osgi.framework.console.CommandProvider
-
_perfFlowTest
public void _perfFlowTest(org.eclipse.osgi.framework.console.CommandInterpreter ci) -
_testAllFlows
public void _testAllFlows(org.eclipse.osgi.framework.console.CommandInterpreter ci)
-