The ceilometer.tests.unit.network.statistics.opendaylight.test_driver Module

The ceilometer.tests.unit.network.statistics.opendaylight.test_driver Module

class 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'}}]}]}
test_meter_switch()[source]
test_meter_switch_flow()[source]
test_meter_switch_flow_bytes()[source]
test_meter_switch_flow_duration_nanoseconds()[source]
test_meter_switch_flow_duration_seconds()[source]
test_meter_switch_flow_packets()[source]
test_meter_switch_port()[source]
test_meter_switch_port_collision_count()[source]
test_meter_switch_port_receive_bytes()[source]
test_meter_switch_port_receive_crc_error()[source]
test_meter_switch_port_receive_drops()[source]
test_meter_switch_port_receive_errors()[source]
test_meter_switch_port_receive_frame_error()[source]
test_meter_switch_port_receive_overrun_error()[source]
test_meter_switch_port_receive_packets()[source]
test_meter_switch_port_transmit_bytes()[source]
test_meter_switch_port_transmit_drops()[source]
test_meter_switch_port_transmit_errors()[source]
test_meter_switch_port_transmit_packets()[source]
test_meter_switch_table()[source]
test_meter_switch_table_active_entries()[source]
test_meter_switch_table_lookup_packets()[source]
test_meter_switch_table_matched_packets()[source]
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}}}]}
class 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'}}]}]}
test_meter_switch()[source]
test_meter_switch_flow()[source]
test_meter_switch_flow_bytes()[source]
test_meter_switch_flow_duration_nanoseconds()[source]
test_meter_switch_flow_duration_seconds()[source]
test_meter_switch_flow_packets()[source]
test_meter_switch_port()[source]
test_meter_switch_port_collision_count()[source]
test_meter_switch_port_receive_bytes()[source]
test_meter_switch_port_receive_crc_error()[source]
test_meter_switch_port_receive_drops()[source]
test_meter_switch_port_receive_errors()[source]
test_meter_switch_port_receive_frame_error()[source]
test_meter_switch_port_receive_overrun_error()[source]
test_meter_switch_port_receive_packets()[source]
test_meter_switch_port_transmit_bytes()[source]
test_meter_switch_port_transmit_drops()[source]
test_meter_switch_port_transmit_errors()[source]
test_meter_switch_port_transmit_packets()[source]
test_meter_switch_table()[source]
test_meter_switch_table_active_entries()[source]
test_meter_switch_table_lookup_packets()[source]
test_meter_switch_table_matched_packets()[source]
topology_data = {'edgeProperties': []}
class 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': []}
test_cache()[source]
test_dict_to_kv()[source]
test_http_error()[source]
test_multi_container()[source]
test_not_implemented_meter()[source]
topology_data = {'edgeProperties': []}
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.