| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 0 | ||
| 1 | """Query the switch for configured queues on a port.""" |
||
| 16 | 1 | class QueueGetConfigRequest(GenericMessage): |
|
| 17 | """Query structure for configured queues on a port.""" |
||
| 18 | |||
| 19 | 1 | header = Header(message_type=Type.OFPT_QUEUE_GET_CONFIG_REQUEST) |
|
| 20 | 1 | port = UBInt16(enum_ref=Port) |
|
| 21 | #: Pad to 64-bits |
||
| 22 | 1 | pad = Pad(2) |
|
| 23 | |||
| 24 | 1 | def __init__(self, xid=None, port=None): |
|
| 25 | """Create a QueueGetConfigRequest with the optional parameters below. |
||
| 26 | |||
| 27 | Args: |
||
| 28 | xid (int): xid of OpenFlow header |
||
| 29 | port (~pyof.v0x01.common.phy_port.Port): Target port for the query |
||
| 30 | """ |
||
| 31 | super().__init__(xid) |
||
| 32 | self.port = port |
||
| 33 |