]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add rule for updating network's router:external attribute
authorElena Ezhova <eezhova@mirantis.com>
Wed, 9 Jul 2014 16:10:17 +0000 (20:10 +0400)
committerElena Ezhova <eezhova@mirantis.com>
Tue, 22 Jul 2014 08:27:14 +0000 (12:27 +0400)
commitdc444960946445f2bef0b8eaab675420a29d5ba3
treeb1819e7e0b550e320dab5639ef361fcd2cef0dc8
parent1b621fc8a5651d47b4285fa193dda8b90350f002
Add rule for updating network's router:external attribute

Set admin_only rule for update_network:router:external in policy.json

Also, change the default value of router:external from attr.ATTR_NOT_SPECIFIED
to False, because each time we try to get or update a network the dict with
its attributes is extended by _extend_network_dict_l3 function which adds
router:external=False to the dict if this attribute is not specified.
Thus, if the default value is not specified, router:external is considered
to be updated in any case and the policy rule is applied.

Change-Id: I899d98c7d8c9d9863ac5d8f992b6a2d507ec4482
Closes-Bug: 1338880
etc/policy.json
neutron/extensions/external_net.py
neutron/tests/unit/test_extension_ext_net.py