]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Simplify join to rbac_entries for subnets
authorKevin Benton <blak111@gmail.com>
Fri, 18 Sep 2015 17:31:26 +0000 (10:31 -0700)
committerKevin Benton <blak111@gmail.com>
Fri, 18 Sep 2015 17:36:52 +0000 (10:36 -0700)
commit14c47284f6c64f16ab1e9da442c6fb8317784fcb
treee0e2a6d2dc0a31caa515b3683043dd369e384efa
parent09ed190de596fc2d80c3fed75b09c6a63e2dd230
Simplify join to rbac_entries for subnets

The subnet table was joined to the rbac table via an association proxy
which required a bunch of hacking in the model_query setup to get it
to work right.

This patch simplifies it quiet a bit by just using a direct relationship
between the subnets and networkrbacs tables joined via the subnet's
networkid.

It also unrolls an API test that was really difficult to debug because
it was hard to tell which iteration it was on.

Change-Id: I4da85218158aae624835b97053da9fbb6fb154ef
neutron/db/common_db_mixin.py
neutron/db/models_v2.py
neutron/tests/api/admin/test_shared_network_extension.py