class OFControllerStateType(_Base): _ELEMENTS = [ _e('connection-state', is_list=False), _e('current-version', is_list=False), # XXX OF-Config 1.1.1 is inconsistent about supported-versions. # # according to its xml schema (p.43), i believe this should look # like the following. it's what linc/of_config does, too. # <supported-versions>1.3</supported-versions> # # on the other hand, it has an example (p.45) like the following. # this one is compatible with OF-Config 1.1. # <supported-versions> # <version>1.2</version> # <version>1.1</version> # </supported-versions> _e('supported-versions', is_list=True), _e('local-ip-address-in-use', is_list=False), _e('local-port-in-use', is_list=False), ]
class OFControllerType(_Base): _ELEMENTS = [ _e('id', is_list=False), _e('role', is_list=False), _e('ip-address', is_list=False), _e('port', is_list=False), _e('local-ip-address', is_list=False), _e('local-port', is_list=False), _e('protocol', is_list=False), _ct('state', OFControllerStateType, is_list=False), ]
class OFQueuePropertiesType(_Base): _ELEMENTS = [ _e('min-rate', is_list=False), _e('max-rate', is_list=False), _e('experimenter', is_list=True), ]
class OFPortStateType(_Base): _ELEMENTS = [ _e('oper-state', is_list=False), _e('blocked', is_list=False), _e('live', is_list=False), ]