public class FlowsListCommand extends AbstractShellCommand
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANY |
| Constructor and Description |
|---|
FlowsListCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Executes this command.
|
protected java.util.SortedMap<org.onosproject.net.Device,java.util.List<org.onosproject.net.flow.FlowEntry>> |
getSortedFlows(org.onosproject.net.device.DeviceService deviceService,
org.onosproject.net.flow.FlowRuleService service,
org.onosproject.core.CoreService coreService)
Returns the list of devices sorted using the device ID URIs.
|
protected void |
printFlows(org.onosproject.net.Device d,
java.util.List<org.onosproject.net.flow.FlowEntry> flows,
org.onosproject.core.CoreService coreService)
Prints flows.
|
void |
removeFlowsInteractive(java.lang.Iterable<org.onosproject.net.flow.FlowEntry> flows,
org.onosproject.net.flow.FlowRuleService flowService,
org.onosproject.core.CoreService coreService)
Removes the flows passed as argument after confirmation is provided
for each of them.
|
annotations, annotations, annotations, appId, codec, doExecute, error, get, getService, jsonForEntity, mapper, outputJson, printcheckInterrupted, executepublic static final java.lang.String ANY
protected void execute()
AbstractShellCommandexecute in class AbstractShellCommandpublic void removeFlowsInteractive(java.lang.Iterable<org.onosproject.net.flow.FlowEntry> flows,
org.onosproject.net.flow.FlowRuleService flowService,
org.onosproject.core.CoreService coreService)
flows - list of flows to removeflowService - FlowRuleService objectcoreService - CoreService objectprotected java.util.SortedMap<org.onosproject.net.Device,java.util.List<org.onosproject.net.flow.FlowEntry>> getSortedFlows(org.onosproject.net.device.DeviceService deviceService,
org.onosproject.net.flow.FlowRuleService service,
org.onosproject.core.CoreService coreService)
deviceService - device serviceservice - flow rule servicecoreService - core serviceprotected void printFlows(org.onosproject.net.Device d,
java.util.List<org.onosproject.net.flow.FlowEntry> flows,
org.onosproject.core.CoreService coreService)
d - the deviceflows - the set of flows for that devicecoreService - core system service