Conditions | 1 |
Total Lines | 13 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | """Defines Vendor message.""" |
||
26 | 1 | def __init__(self, xid=None, vendor=None, data=None): |
|
27 | """Create a VendorHeader with the options parameters below. |
||
28 | |||
29 | Args: |
||
30 | xid (int): xid to be used on the message header. |
||
31 | vendor (int): Vendor ID: |
||
32 | MSB 0: low-order bytes are IEEE OUI. |
||
33 | MSB != 0: defined by OpenFlow consortium. |
||
34 | data (BinaryData): Vendor-defined arbitrary additional data. |
||
35 | """ |
||
36 | 1 | super().__init__(xid) |
|
37 | 1 | self.vendor = vendor |
|
38 | self.data = data |
||
39 |