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.
Reviewed: https:/ /review. openstack. org/105792 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=dc444960946 445f2bef0b8eaab 675420a29d5ba3
Committed: https:/
Submitter: Jenkins
Branch: master
commit dc444960946445f 2bef0b8eaab6754 20a29d5ba3
Author: Elena Ezhova <email address hidden>
Date: Wed Jul 9 20:10:17 2014 +0400
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 network_ dict_l3 function which adds external= False to the dict if this attribute is not specified.
to False, because each time we try to get or update a network the dict with
its attributes is extended by _extend_
router:
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: I899d98c7d8c9d9 863ac5d8f992b6a 2d507ec4482
Closes-Bug: 1338880