Adding route/subnet quota with default of 3

RM982
This commit is contained in:
insequent
2014-08-13 15:59:00 +00:00
parent 2d91a8147c
commit 0745e21421
2 changed files with 12 additions and 2 deletions

View File

@@ -39,17 +39,22 @@ CONF = cfg.CONF
quark_resources = [
quota.BaseResource('ports_per_network',
'quota_ports_per_network'),
quota.BaseResource('routes_per_subnet',
'quota_routes_per_subnet'),
quota.BaseResource('security_rules_per_group',
'quota_security_rules_per_group'),
'quota_security_rules_per_group')
]
quark_quota_opts = [
cfg.IntOpt('quota_ports_per_network',
default=250,
help=_('Maximum ports per network')),
cfg.IntOpt('quota_routes_per_subnet',
default=3,
help=_('Maximum routes per subnet')),
cfg.IntOpt('quota_security_rules_per_group',
default=20,
help=_('Maximum security group rules in a group')),
help=_('Maximum security group rules in a group'))
]