Allows manual reset of deallocate_at for admins

Done through PUT to /ip_addresses with "reset_allocation_time": true in the
body.

A few modifications were done to base_tests to support the admin context.

Had to prevent admin_roles from being loaded on context.

Removed the DEFAULT_ROUTE thing for great justice!

Non-admin access will raise HTTPForbidden.

Created _create_patch for the extra patching love.

RM6300
This commit is contained in:
Justin Hammond
2014-05-21 17:35:03 -05:00
parent 431825ec83
commit e4aa46d970
4 changed files with 69 additions and 1 deletions

View File

@@ -31,7 +31,6 @@ from quark import utils
CONF = cfg.CONF
LOG = logging.getLogger(__name__)
STRATEGY = network_strategy.STRATEGY
DEFAULT_ROUTE = netaddr.IPNetwork("0.0.0.0/0")
quark_view_opts = [
cfg.BoolOpt('show_allocation_pools',