Add flavor extra spec key templates

Add a variety of common keys in a dropdown to help users
add flavor extra keys.

Change-Id: I1738c65887cc165255a027f82474a33c5efe3218
Implements: blueprint flavor-extra-specs-templates
This commit is contained in:
Zhenguo Niu 2013-12-06 15:12:55 +08:00
parent 08d458fb06
commit c515d8b49e
1 changed files with 13 additions and 0 deletions

View File

@ -12,6 +12,8 @@
import os
from django.utils.translation import ugettext_lazy as _
from horizon.test.settings import * # noqa
from horizon.utils import secret_key
@ -201,3 +203,14 @@ POLICY_FILES = {
'identity': 'keystone_policy.json',
'compute': 'nova_policy.json'
}
FLAVOR_EXTRA_KEYS = {
'flavor_keys': [
('quota:read_bytes_sec', _('Quota: Read bytes')),
('quota:write_bytes_sec', _('Quota: Write bytes')),
('quota:cpu_quota', _('Quota: CPU')),
('quota:cpu_period', _('Quota: CPU period')),
('quota:inbound_average', _('Quota: Inbound average')),
('quota:outbound_average', _('Quota: Outbound average')),
]
}