ceilometer.tests.unit.network.statistics.opendaylight.test_driver
Module¶ceilometer.tests.unit.network.statistics.opendaylight.test_driver.
TestOpenDayLightDriverComplex
(*args, **kwds)[source]¶Bases: ceilometer.tests.unit.network.statistics.opendaylight.test_driver._Base
active_hosts_data
= {'hostConfig': [{'nodeType': 'OF', 'networkAddress': '1.1.1.1', 'nodeConnectorId': '9', 'dataLayerAddress': '00:00:00:00:01:01', 'staticHost': 'false', 'vlan': '0', 'nodeConnectorType': 'OF', 'nodeId': '00:00:00:00:00:00:00:01'}, {'nodeType': 'OF', 'networkAddress': '2.2.2.2', 'nodeConnectorId': '1', 'dataLayerAddress': '00:00:00:00:02:02', 'staticHost': 'true', 'vlan': '0', 'nodeConnectorType': 'OF', 'nodeId': '00:00:00:00:00:00:00:02'}]}¶flow_data
= {'flowStatistics': [{'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'flowStatistic': [{'durationNanoseconds': '397000000', 'flow': {'hardTimeout': '0', 'idleTimeout': '0', 'actions': {'@type': 'output', 'port': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'type': 'OF', 'id': '3'}}, 'priority': '1', 'id': '0', 'match': {'matchField': [{'type': 'DL_TYPE', 'value': '2048'}, {'type': 'NW_DST', 'mask': '255.255.255.255', 'value': '1.1.1.1'}]}}, 'durationSeconds': '1828', 'byteCount': '0', 'tableId': '0', 'packetCount': '0'}, {'durationNanoseconds': '200000', 'flow': {'hardTimeout': '0', 'idleTimeout': '0', 'actions': {'@type': 'output', 'port': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:03'}, 'type': 'OF', 'id': '4'}}, 'priority': '1', 'id': '0', 'match': {'matchField': [{'type': 'DL_TYPE', 'value': '2048'}, {'type': 'NW_DST', 'mask': '255.255.255.255', 'value': '1.1.1.2'}]}}, 'durationSeconds': '5648', 'byteCount': '89', 'tableId': '1', 'packetCount': '30'}]}]}¶inactive_hosts_data
= {'hostConfig': [{'nodeType': 'OF', 'networkAddress': '1.1.1.3', 'nodeConnectorId': '8', 'dataLayerAddress': '00:00:00:01:01:01', 'staticHost': 'false', 'vlan': '0', 'nodeConnectorType': 'OF', 'nodeId': '00:00:00:00:00:00:00:01'}, {'nodeType': 'OF', 'networkAddress': '2.2.2.4', 'nodeConnectorId': '0', 'dataLayerAddress': '00:00:00:01:02:02', 'staticHost': 'false', 'vlan': '1', 'nodeConnectorType': 'OF', 'nodeId': '00:00:00:00:00:00:00:02'}]}¶port_data
= {'portStatistics': [{'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'portStatistic': [{'transmitDrops': '0', 'receiveErrors': '0', 'receiveBytes': '0', 'receiveOverRunError': '0', 'receivePackets': '0', 'receiveCrcError': '0', 'receiveFrameError': '0', 'receiveDrops': '0', 'collisionCount': '0', 'transmitPackets': '0', 'nodeConnector': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'type': 'OF', 'id': '4'}, 'transmitBytes': '0', 'transmitErrors': '0'}, {'transmitDrops': '0', 'receiveErrors': '0', 'receiveBytes': '12740', 'receiveOverRunError': '0', 'receivePackets': '182', 'receiveCrcError': '0', 'receiveFrameError': '0', 'receiveDrops': '0', 'collisionCount': '0', 'transmitPackets': '173', 'nodeConnector': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'type': 'OF', 'id': '3'}, 'transmitBytes': '12110', 'transmitErrors': '0'}, {'transmitDrops': '0', 'receiveErrors': '0', 'receiveBytes': '12180', 'receiveOverRunError': '0', 'receivePackets': '174', 'receiveCrcError': '0', 'receiveFrameError': '0', 'receiveDrops': '0', 'collisionCount': '0', 'transmitPackets': '181', 'nodeConnector': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'type': 'OF', 'id': '2'}, 'transmitBytes': '12670', 'transmitErrors': '0'}, {'transmitDrops': '0', 'receiveErrors': '0', 'receiveBytes': '0', 'receiveOverRunError': '0', 'receivePackets': '0', 'receiveCrcError': '0', 'receiveFrameError': '0', 'receiveDrops': '0', 'collisionCount': '0', 'transmitPackets': '0', 'nodeConnector': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'type': 'OF', 'id': '1'}, 'transmitBytes': '0', 'transmitErrors': '0'}, {'transmitDrops': '0', 'receiveErrors': '0', 'receiveBytes': '0', 'receiveOverRunError': '0', 'receivePackets': '0', 'receiveCrcError': '0', 'receiveFrameError': '0', 'receiveDrops': '0', 'collisionCount': '0', 'transmitPackets': '0', 'nodeConnector': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'type': 'OF', 'id': '0'}, 'transmitBytes': '0', 'transmitErrors': '0'}]}]}¶switch_data
= {'nodeProperties': [{'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'properties': {'macAddress': {'value': '00:00:00:00:00:02'}, 'description': {'value': 'None'}, 'tables': {'value': '-1'}, 'timeStamp': {'name': 'connectedSince', 'value': '1377291227877'}, 'capabilities': {'value': '199'}, 'actions': {'value': '4095'}, 'buffers': {'value': '256'}}}, {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:03'}, 'properties': {'macAddress': {'value': '00:00:00:00:00:03'}, 'description': {'value': 'Foo Bar'}, 'tables': {'value': '10'}, 'timeStamp': {'name': 'connectedSince', 'value': '1377291228000'}, 'capabilities': {'value': '1000'}, 'actions': {'value': '1024'}, 'buffers': {'value': '512'}}}]}¶table_data
= {'tableStatistics': [{'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'tableStatistic': [{'activeCount': '11', 'matchedCount': '220', 'lookupCount': '816', 'nodeTable': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'id': '0'}}, {'activeCount': '20', 'matchedCount': '5', 'lookupCount': '10', 'nodeTable': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'id': '1'}}]}]}¶topology_data
= {'edgeProperties': [{'edge': {'headNodeConnector': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:03'}, 'type': 'OF', 'id': '2'}, 'tailNodeConnector': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'type': 'OF', 'id': '2'}}, 'properties': {'timeStamp': {'name': 'creation', 'value': 1379527162648}, 'bandwidth': {'value': 10000000000}, 'config': {'value': 1}, 'name': {'value': 's2-eth3'}, 'state': {'value': 1}}}, {'edge': {'headNodeConnector': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'type': 'OF', 'id': '5'}, 'tailNodeConnector': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:04'}, 'type': 'OF', 'id': '2'}}, 'properties': {'timeStamp': {'name': 'creation', 'value': 1379527162648}}}]}¶user_links_data
= {'userLinks': [{'status': 'Success', 'dstNodeConnector': 'OF|5@OF|00:00:00:00:00:00:00:05', 'name': 'link1', 'srcNodeConnector': 'OF|3@OF|00:00:00:00:00:00:00:02'}]}¶ceilometer.tests.unit.network.statistics.opendaylight.test_driver.
TestOpenDayLightDriverSimple
(*args, **kwds)[source]¶Bases: ceilometer.tests.unit.network.statistics.opendaylight.test_driver._Base
active_hosts_data
= {'hostConfig': []}¶flow_data
= {'flowStatistics': [{'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'flowStatistic': [{'durationNanoseconds': '397000000', 'flow': {'hardTimeout': '0', 'idleTimeout': '0', 'actions': {'@type': 'output', 'port': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'type': 'OF', 'id': '3'}}, 'priority': '1', 'id': '0', 'match': {'matchField': [{'type': 'DL_TYPE', 'value': '2048'}, {'type': 'NW_DST', 'mask': '255.255.255.255', 'value': '1.1.1.1'}]}}, 'durationSeconds': '1828', 'byteCount': '0', 'tableId': '0', 'packetCount': '0'}]}]}¶inactive_hosts_data
= {'hostConfig': []}¶port_data
= {'portStatistics': [{'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'portStatistic': [{'transmitDrops': '0', 'receiveErrors': '0', 'receiveBytes': '0', 'receiveOverRunError': '0', 'receivePackets': '0', 'receiveCrcError': '0', 'receiveFrameError': '0', 'receiveDrops': '0', 'collisionCount': '0', 'transmitPackets': '0', 'nodeConnector': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'type': 'OF', 'id': '4'}, 'transmitBytes': '0', 'transmitErrors': '0'}]}]}¶switch_data
= {'nodeProperties': [{'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'properties': {'timeStamp': {'name': 'connectedSince', 'value': '1377291227877'}, 'actions': {'value': '4095'}}}]}¶table_data
= {'tableStatistics': [{'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'tableStatistic': [{'activeCount': '11', 'matchedCount': '220', 'lookupCount': '816', 'nodeTable': {'node': {'type': 'OF', 'id': '00:00:00:00:00:00:00:02'}, 'id': '0'}}]}]}¶topology_data
= {'edgeProperties': []}¶user_links_data
= {'userLinks': []}¶ceilometer.tests.unit.network.statistics.opendaylight.test_driver.
TestOpenDayLightDriverSpecial
(*args, **kwds)[source]¶Bases: ceilometer.tests.unit.network.statistics.opendaylight.test_driver._Base
active_hosts_data
= {'hostConfig': []}¶flow_data
= {'flowStatistics': []}¶inactive_hosts_data
= {'hostConfig': []}¶port_data
= {'portStatistics': []}¶switch_data
= {'nodeProperties': []}¶table_data
= {'tableStatistics': []}¶topology_data
= {'edgeProperties': []}¶user_links_data
= {'userLinks': []}¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.