]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Reset the policy after loading extensions
authorVincent Untz <vuntz@suse.com>
Sun, 16 Feb 2014 09:33:44 +0000 (10:33 +0100)
committerVincent Untz <vuntz@suse.com>
Mon, 17 Feb 2014 21:11:52 +0000 (22:11 +0100)
commitd8f8d3af706ded5d6d16fc86e0de89f5c7db581c
tree263b1611249acf1db8a561868f1cdc506f11a12b
parent6e8aebac95122f092a90410630da65a92e52bc13
Reset the policy after loading extensions

The loading of extensions might impact how rules are interpreted in the
policies; for instance, the external-net extension specifies how to
convert the router:external field of a network (to a boolean). So we
need to make sure that the policy is recreated afterwards.

We also need to fix a unit test that assumes that the policy is loaded.

Change-Id: Ifde13323b1435fc84c6cb24ab6a71de5d67f6b9f
Closes-Bug: #1280738
neutron/api/extensions.py
neutron/tests/unit/test_api_v2.py