| Total Complexity | 1 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | """Defines Echo Reply message during the handshake.""" |
||
| 16 | class EchoReply(GenericMessage): |
||
| 17 | """OpenFlow Reply message. |
||
| 18 | |||
| 19 | This message does not contain a body beyond the OpenFlow Header. |
||
| 20 | """ |
||
| 21 | |||
| 22 | header = Header(message_type=Type.OFPT_ECHO_REPLY, length=8) |
||
| 23 | data = BinaryData() |
||
| 24 | |||
| 25 | def __init__(self, xid=None, data=b''): |
||
| 26 | """Create a EchoReply with the optional parameters below. |
||
| 27 | |||
| 28 | Args: |
||
| 29 | xid (int): xid to be used on the message header. |
||
| 30 | data (bytes): arbitrary-length data field. |
||
| 31 | """ |
||
| 32 | super().__init__(xid) |
||
| 33 | self.data = data |
||
| 34 |