File: get_config_reply.py

package info (click to toggle)
python-openflow 2021.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,224 kB
  • sloc: python: 6,906; sh: 4; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 857 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""Defines Get Config Reply message."""

# System imports

# Third-party imports

from pyof.v0x01.common.header import Type
from pyof.v0x01.controller2switch.common import SwitchConfig

__all__ = ('GetConfigReply',)


class GetConfigReply(SwitchConfig):
    """Get Config Reply message."""

    def __init__(self, xid=None, flags=None, miss_send_len=None):
        """Create a GetConfigReply with the optional parameters below.

        Args:
            xid (int): xid to be used on the message header.
            flags (~pyof.v0x01.controller2switch.common.ConfigFlag):
                OFPC_* flags.
            miss_send_len (int): UBInt16 max bytes of new flow that the
                datapath should send to the controller.
        """
        super().__init__(xid, flags, miss_send_len)
        self.header.message_type = Type.OFPT_GET_CONFIG_REPLY