class OFCapableSwitchResourcesType(_Base): _ELEMENTS = [ _ct('port', OFPortType, is_list=True), _ct('queue', OFQueueType, is_list=True), _ct('owned-certificate', None, is_list=True), _ct('external-certificate', None, is_list=True), _ct('flow-table', None, is_list=True), ]
class OFCapableSwitchType(_Base): _ELEMENTS = [ _e('id', is_list=False), _e('config-version', is_list=False), _ct('configuration-points', None, is_list=False), _ct('resources', OFCapableSwitchResourcesType, is_list=False), _ct('logical-switches', OFCapableSwitchLogicalSwitchesType, is_list=False), ]
class OFLogicalSwitchType(_Base): _ELEMENTS = [ _e('id', is_list=False), _ct('capabilities', None, is_list=False), _e('datapath-id', is_list=False), _e('enabled', is_list=False), _e('check-controller-certificate', is_list=False), _e('lost-connection-behavior', is_list=False), _ct('controllers', OFLogicalSwitchControllersType, is_list=False), _ct('resources', OFLogicalSwitchResourcesType, is_list=False), ]
class OFPortType(_Base): _ELEMENTS = [ _e('resource-id', is_list=False), _e('number', is_list=False), _e('name', is_list=False), _e('current-rate', is_list=False), _e('max-rate', is_list=False), _ct('configuration', OFPortConfigurationType, is_list=False), _ct('state', OFPortStateType, is_list=False), _ct('features', None, is_list=False), _ct('tunnel-type', None, is_list=False), ]
class OFQueueType(_Base): _ELEMENTS = [ _e('resource-id', is_list=False), _e('id', is_list=False), _e('port', is_list=False), _ct('properties', OFQueuePropertiesType, 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 OFCapableSwitchLogicalSwitchesType(_Base): _ELEMENTS = [ # this is named 'logical-switch' for OF-Config 1.1. _ct('switch', OFLogicalSwitchType, is_list=True), ]
class OFLogicalSwitchControllersType(_Base): _ELEMENTS = [ _ct('controller', OFControllerType, is_list=True), ]