| Total Complexity | 0 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | """Defines Hello message.""" |
||
| 2 | |||
| 3 | # System imports |
||
| 4 | |||
| 5 | # Third-party imports |
||
| 6 | |||
| 7 | 1 | from pyof.foundation.base import GenericMessage |
|
| 8 | 1 | from pyof.foundation.basic_types import BinaryData |
|
| 9 | 1 | from pyof.v0x01.common.header import Header, Type |
|
| 10 | |||
| 11 | 1 | __all__ = ('Hello',) |
|
| 12 | |||
| 13 | # Classes |
||
| 14 | |||
| 15 | |||
| 16 | 1 | class Hello(GenericMessage): |
|
| 17 | """OpenFlow Hello Message. |
||
| 18 | |||
| 19 | This message does not contain a body beyond the OpenFlow Header. |
||
| 20 | """ |
||
| 21 | |||
| 22 | 1 | header = Header(message_type=Type.OFPT_HELLO, length=8) |
|
| 23 | elements = BinaryData() |
||
| 24 |