Passed
Push — master ( 207ac2...6a3916 )
by Carlos Eduardo
02:57
created

GetAsyncRequest.__init__()   A

Complexity

Conditions 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 2
cts 2
cp 1
c 0
b 0
f 0
rs 9.6666
cc 1
crap 1
1
"""Get Async Request Message."""
2
# System imports
3
4
# Third-party imports
5
6
# Local imports
7 1
from pyof.foundation.base import GenericMessage
8 1
from pyof.v0x04.common.header import Header, Type
9
10 1
__all__ = ('GetAsyncRequest',)
11
12
13 1
class GetAsyncRequest(GenericMessage):
14
    """Request Asynchronous messages.
15
16
    Query the asynchronous messages that it wants to receive (other than error
17
    messages) on a given OpenFlow channel.
18
    """
19
20
    #: OpenFlow :class:`~.header.Header`
21
    header = Header(message_type=Type.OFPT_GET_ASYNC_REQUEST)
22