Conditions | 1 |
Total Lines | 12 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | """Defines an PortStatus Message.""" |
||
43 | 1 | def __init__(self, xid=None, reason=None, desc=None): |
|
44 | """Assign parameters to object attributes. |
||
45 | |||
46 | Args: |
||
47 | xid (int): Header's xid. |
||
48 | reason (~pyof.v0x04.asynchronous.port_status.PortReason): |
||
49 | Addition, deletion or modification. |
||
50 | desc (~pyof.v0x04.common.port.Port): Port description. |
||
51 | """ |
||
52 | 1 | super().__init__(xid) |
|
53 | 1 | self.reason = reason |
|
54 | self.desc = desc |
||
55 |