Module ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return ListComp Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list AttributeLoad AttributeLoad NameLoad attr attr
N/A oslo_utils strutils oslo_utils uuidutils oslo_versionedobjects base object_base ironic.common exception ironic.common utils ironic.db api dbapi ironic.objects base ironic.objects fields object_fields Port N/A N/A base IronicObject N/A object_base VersionedObjectDictCompat N/A N/A VERSION 1.5 N/A dbapi N/A N/A dbapi get_instance N/A fields N/A id uuid node_id address extra local_link_connection portgroup_id pxe_enabled N/A N/A object_fields IntegerField N/A N/A object_fields UUIDField nullable True N/A N/A object_fields IntegerField nullable True N/A N/A object_fields MACAddressField nullable True N/A N/A object_fields FlexibleDictField nullable True N/A N/A object_fields FlexibleDictField nullable True N/A N/A object_fields IntegerField nullable True N/A N/A object_fields BooleanField _from_db_object_list N/A N/A db_objects cls context N/A N/A N/A Converts a list of database entities to a list of formal objects. N/A N/A N/A N/A Port _from_db_object N/A cls context obj N/A obj db_objects N/A staticmethod get N/A N/A cls context port_id N/A N/A N/A Find a port.

        Find a port based on its id or uuid or MAC address and return a Port
        object.

        :param port_id: the id *or* uuid *or* MAC address of a port.
        :returns: a :class:`Port` object.
        :raises: InvalidIdentity

         N/A N/A N/A strutils is_int_like port_id N/A N/A N/A N/A cls get_by_id context port_id N/A N/A N/A N/A uuidutils is_uuid_like port_id N/A N/A N/A N/A cls get_by_uuid context port_id N/A N/A N/A N/A utils is_valid_mac port_id N/A N/A N/A N/A cls get_by_address context port_id N/A N/A N/A N/A exception InvalidIdentity identity port_id N/A classmethod get_by_id N/A N/A cls context port_id N/A N/A N/A Find a port based on its integer id and return a Port object.

        :param port_id: the id of a port.
        :returns: a :class:`Port` object.
        :raises: PortNotFound

         N/A db_port N/A N/A N/A cls dbapi get_port_by_id port_id N/A port N/A N/A Port _from_db_object N/A cls context db_port N/A port N/A classmethod get_by_uuid N/A N/A cls context uuid N/A N/A N/A Find a port based on uuid and return a :class:`Port` object.

        :param uuid: the uuid of a port.
        :param context: Security context
        :returns: a :class:`Port` object.
        :raises: PortNotFound

         N/A db_port N/A N/A N/A cls dbapi get_port_by_uuid uuid N/A port N/A N/A Port _from_db_object N/A cls context db_port N/A port N/A classmethod get_by_address N/A N/A cls context address N/A N/A N/A Find a port based on address and return a :class:`Port` object.

        :param address: the address of a port.
        :param context: Security context
        :returns: a :class:`Port` object.
        :raises: PortNotFound

         N/A db_port N/A N/A N/A cls dbapi get_port_by_address address N/A port N/A N/A Port _from_db_object N/A cls context db_port N/A port N/A classmethod list N/A N/A cls context limit marker sort_key sort_dir N/A None None None None N/A N/A Return a list of Port objects.

        :param context: Security context.
        :param limit: maximum number of resources to return in a single result.
        :param marker: pagination marker for large data sets.
        :param sort_key: column to sort results by.
        :param sort_dir: direction to sort. "asc" or "desc".
        :returns: a list of :class:`Port` object.
        :raises: InvalidParameterValue

         N/A db_ports N/A N/A N/A cls dbapi get_port_list limit limit marker marker sort_key sort_key sort_dir sort_dir N/A N/A N/A Port _from_db_object_list db_ports cls context N/A classmethod list_by_node_id N/A N/A cls context node_id limit marker sort_key sort_dir N/A None None None None N/A N/A Return a list of Port objects associated with a given node ID.

        :param context: Security context.
        :param node_id: the ID of the node.
        :param limit: maximum number of resources to return in a single result.
        :param marker: pagination marker for large data sets.
        :param sort_key: column to sort results by.
        :param sort_dir: direction to sort. "asc" or "desc".
        :returns: a list of :class:`Port` object.

         N/A db_ports N/A N/A N/A cls dbapi get_ports_by_node_id node_id limit limit marker marker sort_key sort_key sort_dir sort_dir N/A N/A N/A Port _from_db_object_list db_ports cls context N/A classmethod list_by_portgroup_id N/A N/A cls context portgroup_id limit marker sort_key sort_dir N/A None None None None N/A N/A Return a list of Port objects associated with a given portgroup ID.

        :param context: Security context.
        :param portgroup_id: the ID of the portgroup.
        :param limit: maximum number of resources to return in a single result.
        :param marker: pagination marker for large data sets.
        :param sort_key: column to sort results by.
        :param sort_dir: direction to sort. "asc" or "desc".
        :returns: a list of :class:`Port` object.

         N/A db_ports N/A N/A N/A cls dbapi get_ports_by_portgroup_id portgroup_id limit limit marker marker sort_key sort_key sort_dir sort_dir N/A N/A N/A Port _from_db_object_list db_ports cls context N/A classmethod create N/A N/A self context N/A None N/A N/A Create a Port record in the DB.

        :param context: Security context. NOTE: This should only
                        be used internally by the indirection_api.
                        Unfortunately, RPC requires context as the first
                        argument, even though we don't use it.
                        A context should be set when instantiating the
                        object, e.g.: Port(context)
        :raises: MACAlreadyExists if 'address' column is not unique
        :raises: PortAlreadyExists if 'uuid' column is not unique

         N/A values N/A N/A self obj_get_changes N/A db_port N/A N/A N/A self dbapi create_port values N/A N/A N/A self _from_db_object self db_port N/A destroy N/A N/A self context N/A None N/A N/A Delete the Port from the DB.

        :param context: Security context. NOTE: This should only
                        be used internally by the indirection_api.
                        Unfortunately, RPC requires context as the first
                        argument, even though we don't use it.
                        A context should be set when instantiating the
                        object, e.g.: Port(context)
        :raises: PortNotFound

         N/A N/A N/A N/A self dbapi destroy_port N/A self uuid N/A N/A N/A self obj_reset_changes N/A save N/A N/A self context N/A None N/A N/A Save updates to this Port.

        Updates will be made column by column based on the result
        of self.what_changed().

        :param context: Security context. NOTE: This should only
                        be used internally by the indirection_api.
                        Unfortunately, RPC requires context as the first
                        argument, even though we don't use it.
                        A context should be set when instantiating the
                        object, e.g.: Port(context)
        :raises: PortNotFound
        :raises: MACAlreadyExists if 'address' column is not unique

         N/A updates N/A N/A self obj_get_changes N/A updated_port N/A N/A N/A self dbapi update_port N/A self uuid updates N/A N/A N/A self _from_db_object self updated_port N/A refresh N/A N/A self context N/A None N/A N/A Loads updates for this Port.

        Loads a port with the same uuid from the database and
        checks for updated attributes. Updates are applied from
        the loaded port column by column, if there are any updates.

        :param context: Security context. NOTE: This should only
                        be used internally by the indirection_api.
                        Unfortunately, RPC requires context as the first
                        argument, even though we don't use it.
                        A context should be set when instantiating the
                        object, e.g.: Port(context)
        :raises: PortNotFound

         N/A current N/A N/A N/A self __class__ get_by_uuid N/A self _context uuid N/A self uuid N/A N/A N/A self obj_refresh current N/A N/A N/A N/A base IronicObjectRegistry register