Package org.onosproject.net.optical.cli
Class OpticalPortsListCommand
- java.lang.Object
-
- org.onosproject.cli.AbstractShellCommand
-
- org.onosproject.cli.net.DevicesListCommand
-
- org.onosproject.cli.net.DevicePortsListCommand
-
- org.onosproject.net.optical.cli.OpticalPortsListCommand
-
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action,org.onosproject.codec.CodecContext
public class OpticalPortsListCommand extends org.onosproject.cli.net.DevicePortsListCommandLists all ports or all ports of a device.
-
-
Constructor Summary
Constructors Constructor Description OpticalPortsListCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute()protected booleanisIncluded(org.onosproject.net.Port port)protected voidprintPorts(org.onosproject.net.device.DeviceService service, org.onosproject.net.Device device)-
Methods inherited from class org.onosproject.cli.net.DevicesListCommand
getSortedDevices, printDevice
-
Methods inherited from class org.onosproject.cli.AbstractShellCommand
annotations, annotations, annotations, appId, codec, error, execute, get, getService, jsonForEntity, mapper, outputJson, print
-
-
-
-
Method Detail
-
doExecute
protected void doExecute()
- Overrides:
doExecutein classorg.onosproject.cli.net.DevicePortsListCommand
-
isIncluded
protected boolean isIncluded(org.onosproject.net.Port port)
- Overrides:
isIncludedin classorg.onosproject.cli.net.DevicePortsListCommand
-
printPorts
protected void printPorts(org.onosproject.net.device.DeviceService service, org.onosproject.net.Device device)- Overrides:
printPortsin classorg.onosproject.cli.net.DevicePortsListCommand
-
-