Conditions | 1 |
Total Lines | 14 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | """Flow Table Modification message.""" |
||
30 | 1 | def __init__(self, xid=None, table_id=Table.OFPTT_ALL, config=3): |
|
31 | """Assing parameters to object attributes. |
||
32 | |||
33 | Args: |
||
34 | xid (int): :class:`~pyof.v0x04.common.header.Header`'s xid. |
||
35 | Defaults to random. |
||
36 | table_id (int): ID of the table, OFPTT_ALL indicates all tables. |
||
37 | config (int): Bitmap of OFPTC_* flags |
||
38 | """ |
||
39 | 1 | super().__init__(xid) |
|
40 | 1 | self.table_id = table_id |
|
41 | # This is reserved for future used. The default value is the only valid |
||
42 | # one from the Enum. |
||
43 | self.config = config |
||
44 |