]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove second call to get_subnets in delete_subnet
authorSam Betts <sam@code-smash.net>
Fri, 5 Sep 2014 15:16:01 +0000 (16:16 +0100)
committerSam Betts <sam@code-smash.net>
Tue, 9 Sep 2014 08:38:45 +0000 (09:38 +0100)
commit6fffe3bf841667e9a303351cf6dc05e6643b9291
treeae97ff46f9c354376a615f62e1b4868eb51867aa
parentaaea5dd1c4f396bbd760fa677ced3518149bd6db
Remove second call to get_subnets in delete_subnet

delete_subnet made calls to both get_subnet and _get_subnet,
get_subnet uses _get_subnet so multiple database requests were being
made, this patch removes the call to get_subnet and directly calls
_make_subnet_dict using the result of _get_subnet

Change-Id: I9982821dbb9447e35a4b6e50bc5ad31cec417ca5
Closes-Bug: 1366056
neutron/plugins/ml2/plugin.py