|
18 | 18 | from pyof.v0x04.common.header import Header |
19 | 19 | from pyof.v0x04.controller2switch.table_mod import Table |
20 | 20 |
|
21 | | -__all__ = ('ConfigFlags', 'ControllerRole', 'Bucket', 'BucketCounter', |
| 21 | +__all__ = ('ConfigFlag', 'ControllerRole', 'Bucket', 'BucketCounter', |
22 | 22 | 'ExperimenterMultipartHeader', 'MultipartType', |
23 | 23 | 'TableFeaturePropType', 'Property', 'InstructionsProperty', |
24 | 24 | 'NextTablesProperty', 'ActionsProperty', 'OxmProperty', |
|
27 | 27 | # Enum |
28 | 28 |
|
29 | 29 |
|
30 | | -class ConfigFlags(IntEnum): |
| 30 | +class ConfigFlag(IntEnum): |
31 | 31 | """Handling of IP fragments.""" |
32 | 32 |
|
33 | 33 | #: No special handling for fragments. |
@@ -338,16 +338,16 @@ class SwitchConfig(GenericMessage): |
338 | 338 |
|
339 | 339 | #: OpenFlow :class:`~pyof.v0x04.common.header.Header` |
340 | 340 | header = Header() |
341 | | - flags = UBInt16(enum_ref=ConfigFlags) |
| 341 | + flags = UBInt16(enum_ref=ConfigFlag) |
342 | 342 | miss_send_len = UBInt16() |
343 | 343 |
|
344 | | - def __init__(self, xid=None, flags=ConfigFlags.OFPC_FRAG_NORMAL, |
| 344 | + def __init__(self, xid=None, flags=ConfigFlag.OFPC_FRAG_NORMAL, |
345 | 345 | miss_send_len=ControllerMaxLen.OFPCML_NO_BUFFER): |
346 | 346 | """Create a SwitchConfig with the optional parameters below. |
347 | 347 |
|
348 | 348 | Args: |
349 | 349 | xid (int): xid to be used on the message header. |
350 | | - flags (ConfigFlags): OFPC_* flags. |
| 350 | + flags (ConfigFlag): OFPC_* flags. |
351 | 351 | miss_send_len (int): UBInt16 max bytes of new flow that the |
352 | 352 | datapath should send to the controller. |
353 | 353 | """ |
|
0 commit comments