public class FlowsListCommand extends AbstractShellCommand
| Modifier and Type | Field and Description |
|---|---|
static String |
ANY |
log| Constructor and Description |
|---|
FlowsListCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute()
Body of the shell command.
|
protected SortedMap<org.onosproject.net.Device,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,
List<org.onosproject.net.flow.FlowEntry> flows,
org.onosproject.core.CoreService coreService)
Prints flows.
|
void |
removeFlowsInteractive(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, error, execute, get, getService, jsonForEntity, mapper, outputJson, printpublic static final String ANY
protected void doExecute()
AbstractShellCommanddoExecute in class AbstractShellCommandpublic void removeFlowsInteractive(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 SortedMap<org.onosproject.net.Device,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,
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