]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Jointly load ExternalNetwork with Network
authorSalvatore Orlando <salv.orlando@gmail.com>
Tue, 7 May 2013 22:07:17 +0000 (00:07 +0200)
committerSalvatore Orlando <salv.orlando@gmail.com>
Mon, 1 Jul 2013 15:38:54 +0000 (17:38 +0200)
commitcfaec705c866cf99397612d417e70a8d0412bc0d
tree2c5d6d6f45c4da98d0c21bbbb12c85efdd99facd
parent6426a7e445013526a0bd2908d657493776e97888
Jointly load ExternalNetwork with Network

Bug 1177572

This patch leverages the same approach as bug 1174111 for avoiding
loading ExternalNetwork element from db for each network element.
make_network_dict, _extend_network_dict_l3 are refactored accordingly.

Also, this patch sligthly alters the logic of process_l3_network_create
and process_l3_network_update as these methods assumed
_extend_network_dict_l3 was always executed before retuerning.

Finally, calls to get_network and get_networks in plugins which only
extended the response with l3 attributes have been completely removed.

Change-Id: I3b4c28ec0c78f731a534c2b66150d529fd797e72
16 files changed:
quantum/db/db_base_plugin_v2.py
quantum/db/l3_db.py
quantum/plugins/bigswitch/plugin.py
quantum/plugins/brocade/QuantumPlugin.py
quantum/plugins/hyperv/hyperv_quantum_plugin.py
quantum/plugins/linuxbridge/lb_quantum_plugin.py
quantum/plugins/metaplugin/meta_quantum_plugin.py
quantum/plugins/midonet/plugin.py
quantum/plugins/ml2/plugin.py
quantum/plugins/mlnx/mlnx_plugin.py
quantum/plugins/nec/nec_plugin.py
quantum/plugins/nicira/QuantumPlugin.py
quantum/plugins/openvswitch/ovs_quantum_plugin.py
quantum/plugins/ryu/ryu_quantum_plugin.py
quantum/tests/unit/metaplugin/fake_plugin.py
quantum/tests/unit/test_l3_plugin.py