@classmethod
    def list(cls, context, limit=None, marker=None,
             sort_key=None, sort_dir=None):
        db_ports = cls.dbapi.get_port_list(limit=limit,
                                           marker=marker,
                                           sort_key=sort_key,
                                           sort_dir=sort_dir)
        return Port._from_db_object_list(db_ports, cls, context)

    # NOTE(xek): We don't want to enable RPC on this call just yet. Remotable
    # methods can be used in the future to replace current explicit RPC calls.
    # Implications of calling new remote procedures should be thought through.
    # @object_base.remotable_classmethod
Return a list of Port objects.
dataset/ETHPy150Open openstack/ironic/ironic/objects/port.py/Port.list