Module Expr Str Import alias Import alias ImportFrom alias ClassDef bases Call AttributeLoad NameLoad attr Str TupleLoad Str Str Str Str Str body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad ListComp Call AttributeLoad NameLoad attr Str comprehension NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases Call AttributeLoad NameLoad attr Str TupleLoad Str Str Str Str Str Str Str Str Str Str Str body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareLt NameLoad Num body Raise Call NameLoad Str NameLoad Assign NameStore BinOpSub BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad While CompareGt AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareNotEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases Call AttributeLoad NameLoad attr Str TupleLoad Str Str Str Str Str Str Str body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases Call AttributeLoad NameLoad attr Str TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad IfExp CompareEq NameLoad AttributeLoad NameLoad attr NameLoad NameLoad IfExp CompareEq NameLoad AttributeLoad NameLoad attr NameLoad NameLoad IfExp CompareEq NameLoad AttributeLoad NameLoad attr NameLoad NameLoad IfExp CompareEq NameLoad AttributeLoad NameLoad attr NameLoad NameLoad IfExp CompareEq NameLoad AttributeLoad NameLoad attr NameLoad NameLoad IfExp CompareEq NameLoad AttributeLoad NameLoad attr NameLoad NameLoad IfExp CompareEq NameLoad AttributeLoad NameLoad attr NameLoad NameLoad IfExp CompareEq NameLoad AttributeLoad NameLoad attr NameLoad NameLoad IfExp CompareEq NameLoad AttributeLoad NameLoad attr NameLoad NameLoad IfExp CompareEq NameLoad AttributeLoad NameLoad attr NameLoad NameLoad IfExp CompareEq NameLoad AttributeLoad NameLoad attr NameLoad NameLoad IfExp CompareEq NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases Call AttributeLoad NameLoad attr Str TupleLoad Str Str Str Str Str body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A N/A Representations and encoding/decoding of OpenFlow 1.0.0 statistics.

Vendor stats are handled specially by the OpenflowProtocol
implementation, and are not handled in this module.
 N/A collections N/A struct openfaucet ofmatch DescriptionStats N/A N/A N/A collections namedtuple DescriptionStats N/A mfr_desc hw_desc sw_desc serial_num dp_desc N/A N/A The description of an OpenFlow switch.

    The attributes of the description are:
        mfr_desc: Manufacturer description, as a string up to 256 characters.
        hw_desc: Hardware description, as a string up to 256 characters.
        sw_desc: Software description, as a string up to 256 characters.
        serial_num: Serial number, as a string up to 32 characters.
        dp_desc: Human readable description of the datapath, for
            debugging purposes, e.g. 'switch3 in room 3120', as a
            string up to 256 characters.
     N/A FORMAT !256s256s256s32s256s N/A FORMAT_LENGTH N/A N/A struct calcsize FORMAT serialize N/A N/A self N/A N/A N/A Serialize this object into an OpenFlow ofp_desc_stats.

        The returned string can be passed to deserialize() to recreate
        a copy of this object.

        Returns:
            A binary string that is a serialized form of this object
            into an OpenFlow ofp_desc_stats. The ofp_stats_reply
            structure is not included in the generated string.
         N/A N/A N/A struct pack N/A self FORMAT N/A self mfr_desc N/A self hw_desc N/A self sw_desc N/A self serial_num N/A self dp_desc N/A deserialize N/A N/A cls buf N/A N/A N/A Returns a DescriptionStats object deserialized from a sequence of
        bytes.

        Args:
            buf: A ReceiveBuffer object that contains the bytes that
                are the serialized form of the DescriptionStats
                object.

        Returns:
            A new DescriptionStats object deserialized from the buffer.

        Raises:
            ValueError: The buffer has an invalid number of available
                bytes.
         N/A N/A DescriptionStats N/A N/A N/A s rstrip N/A s N/A N/A buf unpack N/A cls FORMAT N/A classmethod N/A FlowStats N/A N/A N/A collections namedtuple FlowStats N/A table_id match duration_sec duration_nsec priority idle_timeout hard_timeout cookie packet_count byte_count actions N/A N/A The stats about an individual flow.

    The attributes of the flow statistics are:
        table_id: The ID of the table the flow came from.
        match: A Match object describing the fields of the flow.
        duration_sec: Time the flow has been alive in seconds, as a
            32-bit unsigned integer.
        duration_nsec: Time flow has been alive in nanoseconds beyond
            duration_sec, as a 32-bit unsigned integer.
        priority: The priority level of the flow entry, as a 16-bit
            unsigned integer.
        idle_timeout: Number of seconds idle before the flow expires,
            as a 16-bit unsigned integer.
        hard_timeout: Number of seconds before the flow expires, as a
            16-bit unsigned integer.
        cookie: An opaque 64-bit unsigned integer issued by the
            controller.
        packet_count: The number of packets in the flow, as a 64-bit
            unsigned integer.
        byte_count: The number of bytes in packets in the flow, as a
            64-bit unsigned integer.
        actions: The sequence of Action* objects specifying the
            actions to perform on the flow's packets.
     N/A FORMAT1 !HBx N/A FORMAT1_LENGTH N/A N/A struct calcsize FORMAT1 N/A FORMAT2 !LLHHH6xQQQ N/A FORMAT2_LENGTH N/A N/A struct calcsize FORMAT2 serialize N/A N/A self serialize_action N/A N/A N/A Serialize this object into an OpenFlow ofp_flow_stats.

        The returned string can be passed to deserialize() to recreate
        a copy of this object.

        Args:
            serialize_action: A callable with signature
                serialize_action(action) that takes an Action* object
                and returns the serialized form of the action as a
                sequence of binary strings.

        Returns:
            A sequence of binary strings that is a serialized form of
            this object into an OpenFlow ofp_flow_stats. The
            ofp_stats_reply structure is not included in the generated
            strings.
         N/A all_data N/A N/A N/A N/A self match serialize N/A N/A struct pack N/A self FORMAT2 N/A self duration_sec N/A self duration_nsec N/A self priority N/A self idle_timeout N/A self hard_timeout N/A self cookie N/A self packet_count N/A self byte_count N/A a N/A self actions N/A N/A N/A N/A all_data extend N/A serialize_action a N/A length N/A N/A self FORMAT1_LENGTH N/A sum N/A N/A len d N/A d all_data N/A N/A N/A all_data insert 0 N/A N/A struct pack N/A self FORMAT1 length N/A self table_id N/A all_data N/A deserialize N/A N/A cls buf deserialize_action N/A N/A N/A Returns a FlowStats object deserialized from a sequence of bytes.

        Args:
            buf: A ReceiveBuffer object that contains the bytes that
                are the serialized form of the FlowStats object.
            deserialize_action: A callable with signature
                deserialize_action(buffer) that takes a ReceiveBuffer
                object and returns the Action* object deserialized
                from the buffer.

        Returns:
            A new FlowStats object deserialized from the buffer.

        Raises:
            ValueError: The buffer has an invalid number of available
                bytes.
         N/A N/A length table_id N/A N/A buf unpack N/A cls FORMAT1 N/A N/A length 88 N/A N/A N/A ValueError FlowStats too short length N/A until_bytes_left N/A N/A N/A buf message_bytes_left N/A cls FORMAT1_LENGTH length N/A match N/A N/A N/A ofmatch Match deserialize buf N/A N/A duration_sec duration_nsec priority idle_timeout hard_timeout cookie packet_count byte_count N/A N/A buf unpack N/A cls FORMAT2 N/A actions N/A N/A N/A N/A buf message_bytes_left until_bytes_left N/A N/A N/A N/A actions append N/A deserialize_action buf N/A N/A N/A buf message_bytes_left until_bytes_left N/A N/A N/A ValueError FlowStats too short length N/A actions N/A tuple actions N/A N/A FlowStats table_id match duration_sec duration_nsec priority idle_timeout hard_timeout cookie packet_count byte_count actions N/A classmethod N/A TableStats N/A N/A N/A collections namedtuple TableStats N/A table_id name wildcards max_entries active_count lookup_count matched_count N/A N/A The stats about an individual table.

    The attributes of the table statistics are:
        table_id: Identifier of the table, as a 8-bit unsigned
            integer.
        name: Name of the table, as a string up to 32 characters.
        wildcards: A Wildcards object that indicates which field
            wildcards are supported by the table: if an attribute is
            True, that attribute can be wildcarded in that table's
            flows entries.
        max_entries: The maximum number of entries supported in the
            table, as a 32-bit unsigned integer.
        active_count: The number of active entries in the table, as a
            32-bit unsigned integer.
        lookup_count: The number of packets looked up in the table, as
            a 64-bit unsigned integer.
        matched_count: The number of packets hit the table, as a
            64-bit unsigned integer.
     N/A FORMAT !B3x32sLLLQQ N/A FORMAT_LENGTH N/A N/A struct calcsize FORMAT serialize N/A N/A self N/A N/A N/A Serialize this object into an OpenFlow ofp_table_stats.

        The returned string can be passed to deserialize() to recreate
        a copy of this object.

        Returns:
            A binary string that is a serialized form of this object
            into an OpenFlow ofp_table_stats. The ofp_stats_reply
            structure is not included in the generated string.
         N/A N/A N/A struct pack N/A self FORMAT N/A self table_id N/A self name N/A N/A N/A self wildcards serialize N/A self max_entries N/A self active_count N/A self lookup_count N/A self matched_count N/A deserialize N/A N/A cls buf N/A N/A N/A Returns a TableStats object deserialized from a sequence of bytes.

        Args:
            buf: A ReceiveBuffer object that contains the bytes that
                are the serialized form of the TableStats object.

        Returns:
            A new TableStats object deserialized from the buffer.

        Raises:
            ValueError: The buffer has an invalid number of available
                bytes.
         N/A N/A table_id name wildcards_ser max_entries active_count lookup_count matched_count N/A N/A buf unpack N/A cls FORMAT N/A N/A TableStats table_id N/A N/A name rstrip N/A N/A N/A ofmatch Wildcards deserialize wildcards_ser max_entries active_count lookup_count matched_count N/A classmethod N/A PortStats N/A N/A N/A collections namedtuple PortStats N/A port_no rx_packets tx_packets rx_bytes tx_bytes rx_dropped tx_dropped rx_errors tx_errors rx_frame_err rx_over_err rx_crc_err collisions N/A N/A The stats about an individual port.

    The attributes of the port statistics are:
        port_no: The port's unique number, as a 16-bit unsigned
            integer. Must be between 1 and OFPP_MAX.
        rx_packets: The number of received packets, as a 64-bit
            unsigned integer.
        tx_packets: The number of transmitted packets, as a 64-bit
            unsigned integer.
        rx_bytes: The number of received bytes, as a 64-bit unsigned
            integer.
        tx_bytes: The number of transmitted bytes, as a 64-bit
            unsigned integer.
        rx_dropped: The number of packets dropped by the receiver, as
            a 64-bit unsigned integer.
        tx_dropped: The number of packets dropped by the transmitter,
            as a 64-bit unsigned integer.
        rx_errors: The number of receive errors, as a 64-bit unsigned
            integer. This is a super-set of more specific receive
            errors and should be greater than or equal to the sum of
            all rx_*_err values.
        tx_errors: The number of transmit errors, as a 64-bit unsigned
            integer.
        rx_frame_err: The number of frame alignment errors, as a
            64-bit unsigned integer.
        rx_over_err: The number of packets with receive overrun, as a
            64-bit unsigned integer.
        rx_crc_err: The number of CRC errors, as a 64-bit unsigned
            integer.
        collisions: The number of collisions, as a 64-bit unsigned
            integer.

    A rx_* or tx_* or collisions attribute is None if that counter is
    unavailable.
     N/A FORMAT !H6xQQQQQQQQQQQQ N/A FORMAT_LENGTH N/A N/A struct calcsize FORMAT N/A _UNAVAILABLE 18446744073709551615 serialize N/A N/A self N/A N/A N/A Serialize this object into an OpenFlow ofp_port_stats.

        The returned string can be passed to deserialize() to recreate
        a copy of this object.

        Returns:
            A binary string that is a serialized form of this object
            into an OpenFlow ofp_port_stats. The ofp_stats_reply
            structure is not included in the generated string.
         N/A N/A N/A struct pack N/A self FORMAT N/A self port_no N/A N/A N/A self rx_packets None N/A self _UNAVAILABLE N/A self rx_packets N/A N/A N/A self tx_packets None N/A self _UNAVAILABLE N/A self tx_packets N/A N/A N/A self rx_bytes None N/A self _UNAVAILABLE N/A self rx_bytes N/A N/A N/A self tx_bytes None N/A self _UNAVAILABLE N/A self tx_bytes N/A N/A N/A self rx_dropped None N/A self _UNAVAILABLE N/A self rx_dropped N/A N/A N/A self tx_dropped None N/A self _UNAVAILABLE N/A self tx_dropped N/A N/A N/A self rx_errors None N/A self _UNAVAILABLE N/A self rx_errors N/A N/A N/A self tx_errors None N/A self _UNAVAILABLE N/A self tx_errors N/A N/A N/A self rx_frame_err None N/A self _UNAVAILABLE N/A self rx_frame_err N/A N/A N/A self rx_over_err None N/A self _UNAVAILABLE N/A self rx_over_err N/A N/A N/A self rx_crc_err None N/A self _UNAVAILABLE N/A self rx_crc_err N/A N/A N/A self collisions None N/A self _UNAVAILABLE N/A self collisions N/A deserialize N/A N/A cls buf N/A N/A N/A Returns a PortStats object deserialized from a sequence of bytes.

        Args:
            buf: A ReceiveBuffer object that contains the bytes that
                are the serialized form of the PortStats object.

        Returns:
            A new PortStats object deserialized from the buffer.

        Raises:
            ValueError: The buffer has an invalid number of available
                bytes.
         N/A N/A port_no rx_packets tx_packets rx_bytes tx_bytes rx_dropped tx_dropped rx_errors tx_errors rx_frame_err rx_over_err rx_crc_err collisions N/A N/A buf unpack N/A cls FORMAT N/A N/A PortStats port_no N/A N/A rx_packets N/A cls _UNAVAILABLE None rx_packets N/A N/A tx_packets N/A cls _UNAVAILABLE None tx_packets N/A N/A rx_bytes N/A cls _UNAVAILABLE None rx_bytes N/A N/A tx_bytes N/A cls _UNAVAILABLE None tx_bytes N/A N/A rx_dropped N/A cls _UNAVAILABLE None rx_dropped N/A N/A tx_dropped N/A cls _UNAVAILABLE None tx_dropped N/A N/A rx_errors N/A cls _UNAVAILABLE None rx_errors N/A N/A tx_errors N/A cls _UNAVAILABLE None tx_errors N/A N/A rx_frame_err N/A cls _UNAVAILABLE None rx_frame_err N/A N/A rx_over_err N/A cls _UNAVAILABLE None rx_over_err N/A N/A rx_crc_err N/A cls _UNAVAILABLE None rx_crc_err N/A N/A collisions N/A cls _UNAVAILABLE None collisions N/A classmethod N/A QueueStats N/A N/A N/A collections namedtuple QueueStats N/A port_no queue_id tx_bytes tx_packets tx_errors N/A N/A The stats about an individual queue.

    The attributes of the queue statistics are:
        port_no: The port's unique number, as a 16-bit unsigned
            integer. Must be between 1 and OFPP_MAX.
        queue_id: The queue's ID, as a 32-bit unsigned integer.
        tx_bytes: The number of transmitted bytes, as a 64-bit
            unsigned integer.
        tx_packets: The number of transmitted packets, as a 64-bit
            unsigned integer.
        tx_errors: The number of transmit errors due to overrun, as a
            64-bit unsigned integer.
     N/A FORMAT !H2xLQQQ N/A FORMAT_LENGTH N/A N/A struct calcsize FORMAT serialize N/A N/A self N/A N/A N/A Serialize this object into an OpenFlow ofp_queue_stats.

        The returned string can be passed to deserialize() to recreate
        a copy of this object.

        Returns:
            A binary string that is a serialized form of this object
            into an OpenFlow ofp_queue_stats. The ofp_stats_reply
            structure is not included in the generated string.
         N/A N/A N/A struct pack N/A self FORMAT N/A self port_no N/A self queue_id N/A self tx_bytes N/A self tx_packets N/A self tx_errors N/A deserialize N/A N/A cls buf N/A N/A N/A Returns a QueueStats object deserialized from a sequence of bytes.

        Args:
            buf: A ReceiveBuffer object that contains the bytes that
                are the serialized form of the QueueStats object.

        Returns:
            A new QueueStats object deserialized from the buffer.

        Raises:
            ValueError: The buffer has an invalid number of available
                bytes.
         N/A N/A QueueStats N/A N/A buf unpack N/A cls FORMAT N/A classmethod N/A