public class DevicesListCommand extends AbstractShellCommand
| Constructor and Description |
|---|
DevicesListCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Executes this command.
|
static java.util.List<org.onosproject.net.Device> |
getSortedDevices(org.onosproject.net.device.DeviceService service)
Returns the list of devices sorted using the device ID URIs.
|
protected void |
printDevice(org.onosproject.net.device.DeviceService deviceService,
org.onosproject.net.Device device)
Prints information about the specified device.
|
annotations, annotations, annotations, appId, codec, doExecute, error, get, getService, jsonForEntity, mapper, outputJson, printcheckInterrupted, executeprotected void execute()
AbstractShellCommandexecute in class AbstractShellCommandpublic static java.util.List<org.onosproject.net.Device> getSortedDevices(org.onosproject.net.device.DeviceService service)
service - device serviceprotected void printDevice(org.onosproject.net.device.DeviceService deviceService,
org.onosproject.net.Device device)
deviceService - device servicedevice - infrastructure device