]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix get_subnet_ids_on_router in dvr scheduler
authorStephen Eilert <stephen.eilert@hpe.com>
Wed, 18 Nov 2015 00:49:19 +0000 (16:49 -0800)
committerStephen Eilert <stephen.eilert@hpe.com>
Fri, 20 Nov 2015 19:48:01 +0000 (11:48 -0800)
commitd198b41def22a188f77948783e90632abb7a588a
tree25b9fd7f81d90507bc89ea5e25c6d01c0a4e9087
parentaa183ba0702b72da52fcea25dde0c662d1312baf
Fix get_subnet_ids_on_router in dvr scheduler

Added a check to verify if we do have any elements in the list of
fixed_ips, before trying to retrieve the first element of the list, to
get the subnet id. There were no checks in the original code, so it
would crash.

Change-Id: If32db500aa3a0c299a5f19c33c05237e8e407e08
Closes-Bug: 1452458
neutron/db/l3_dvrscheduler_db.py
neutron/tests/unit/scheduler/test_l3_agent_scheduler.py