public class DevicesListCommand extends AbstractShellCommand
log| Constructor and Description |
|---|
DevicesListCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute()
Body of the shell command.
|
static 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, error, execute, get, getService, jsonForEntity, mapper, outputJson, printprotected void doExecute()
AbstractShellCommanddoExecute in class AbstractShellCommandpublic static 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