Class OpticalPortsListCommand

  • All Implemented Interfaces:
    org.apache.karaf.shell.api.action.Action, org.onosproject.codec.CodecContext

    public class OpticalPortsListCommand
    extends org.onosproject.cli.net.DevicePortsListCommand
    Lists all ports or all ports of a device.
    • Field Summary

      • Fields inherited from class org.onosproject.cli.net.DevicePortsListCommand

        uri
      • Fields inherited from class org.onosproject.cli.AbstractShellCommand

        log
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doExecute()  
      protected boolean isIncluded​(org.onosproject.net.Port port)  
      protected void printPorts​(org.onosproject.net.device.DeviceService service, org.onosproject.net.Device device)  
      • Methods inherited from class org.onosproject.cli.net.DevicePortsListCommand

        jsonPorts, jsonPorts
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.onosproject.codec.CodecContext

        decode, encode
    • Constructor Detail

      • OpticalPortsListCommand

        public OpticalPortsListCommand()
    • Method Detail

      • doExecute

        protected void doExecute()
        Overrides:
        doExecute in class org.onosproject.cli.net.DevicePortsListCommand
      • isIncluded

        protected boolean isIncluded​(org.onosproject.net.Port port)
        Overrides:
        isIncluded in class org.onosproject.cli.net.DevicePortsListCommand
      • printPorts

        protected void printPorts​(org.onosproject.net.device.DeviceService service,
                                  org.onosproject.net.Device device)
        Overrides:
        printPorts in class org.onosproject.cli.net.DevicePortsListCommand