]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
check subnet overlapping when adding interface to router
authorHisaharu Ishii <ishii@nttmcl.com>
Fri, 7 Sep 2012 00:32:56 +0000 (17:32 -0700)
committerHisaharu Ishii <ishii@nttmcl.com>
Sat, 8 Sep 2012 04:18:04 +0000 (21:18 -0700)
commit5c5aadd2a1cc404acf1240f5273cce3c6d7d575a
tree68df0e2e86a5931833140fc541602b46be0eaa24
parent363a0579dbc56a597e28a8adea5dc4b2ae6d9d7f
check subnet overlapping when adding interface to router

Fixes bug 1046061

Add logic in _check_for_dup_router_subnet to check subnets are not overlapped.
Add testcase test_router_add_interface_overlapped_cidr.

Change-Id: I71b6cce07273686cc5e4636ce640b7201ce00b32
quantum/db/l3_db.py
quantum/tests/unit/test_l3_plugin.py