| Conditions | 1 |
| Total Lines | 13 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | """Define SetConfig message.""" |
||
| 18 | 1 | def __init__(self, xid=None, flags=ConfigFlag.OFPC_FRAG_NORMAL, |
|
| 19 | miss_send_len=ControllerMaxLen.OFPCML_NO_BUFFER): |
||
| 20 | """Create a SetConfig with the optional parameters below. |
||
| 21 | |||
| 22 | Args: |
||
| 23 | xid (int): xid to be used on the message header. |
||
| 24 | flags (:class:`~pyof.v0x01.controller2switch.common.ConfigFlag`): |
||
| 25 | OFPC_* flags. |
||
| 26 | miss_send_len (int): UBInt16 max bytes of new flow that the |
||
| 27 | datapath should send to the controller. |
||
| 28 | """ |
||
| 29 | 1 | super().__init__(xid, flags, miss_send_len) |
|
| 30 | self.header.message_type = Type.OFPT_SET_CONFIG |
||
| 31 |