public class DevicePortsListCommand extends DevicesListCommand
| Modifier and Type | Field and Description |
|---|---|
protected String |
uri |
log| Constructor and Description |
|---|
DevicePortsListCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute()
Body of the shell command.
|
protected boolean |
isIncluded(org.onosproject.net.Port port) |
com.fasterxml.jackson.databind.JsonNode |
jsonPorts(org.onosproject.net.device.DeviceService service,
Iterable<org.onosproject.net.Device> devices)
Produces JSON array containing ports of the specified devices.
|
com.fasterxml.jackson.databind.JsonNode |
jsonPorts(org.onosproject.net.device.DeviceService service,
com.fasterxml.jackson.databind.ObjectMapper mapper,
org.onosproject.net.Device device)
Produces JSON array containing ports of the specified device.
|
protected void |
printPorts(org.onosproject.net.device.DeviceService service,
org.onosproject.net.Device device) |
getSortedDevices, printDeviceannotations, annotations, annotations, appId, codec, error, execute, get, getService, jsonForEntity, mapper, outputJson, printprotected String uri
protected void doExecute()
AbstractShellCommanddoExecute in class DevicesListCommandpublic com.fasterxml.jackson.databind.JsonNode jsonPorts(org.onosproject.net.device.DeviceService service,
Iterable<org.onosproject.net.Device> devices)
service - device servicedevices - collection of devicespublic com.fasterxml.jackson.databind.JsonNode jsonPorts(org.onosproject.net.device.DeviceService service,
com.fasterxml.jackson.databind.ObjectMapper mapper,
org.onosproject.net.Device device)
service - device servicemapper - object mapperdevice - infrastructure devicesprotected boolean isIncluded(org.onosproject.net.Port port)
protected void printPorts(org.onosproject.net.device.DeviceService service,
org.onosproject.net.Device device)