Flavor Framework implementation

This patch introduces API and DB plugin for flavor framework.
API adds Flavors and Service Profiles which are resources
available only for admins to operate.

This framework then should be leveraged by advanced services.

Included tempest API tests in neutron tree

Implements: blueprint neutron-flavor-framework
Change-Id: I99ba0ce520ae3d8696eca5c994777c7d5ba3d4b1
Co-Authored-By: Doug Wiegley <dougw@a10networks.com>
Co-Authored-By: Madhusudhan Kandadai <madhusudhan.kandadai@hp.com>
This commit is contained in:
Eugene Nikanorov 2014-07-17 14:23:49 +04:00 committed by madhusudhan-kandadai
parent 736fbbda8e
commit e7b001b315
4 changed files with 26 additions and 3 deletions

View File

@ -163,5 +163,16 @@
"get_service_provider": "rule:regular_user", "get_service_provider": "rule:regular_user",
"get_lsn": "rule:admin_only", "get_lsn": "rule:admin_only",
"create_lsn": "rule:admin_only" "create_lsn": "rule:admin_only",
"create_flavor": "rule:admin_only",
"update_flavor": "rule:admin_only",
"delete_flavor": "rule:admin_only",
"get_flavors": "rule:regular_user",
"get_flavor": "rule:regular_user",
"create_service_profile": "rule:admin_only",
"update_service_profile": "rule:admin_only",
"delete_service_profile": "rule:admin_only",
"get_service_profiles": "rule:admin_only",
"get_service_profile": "rule:admin_only"
} }

View File

@ -28,6 +28,7 @@ from neutron.db import dvr_mac_db # noqa
from neutron.db import external_net_db # noqa from neutron.db import external_net_db # noqa
from neutron.db import extradhcpopt_db # noqa from neutron.db import extradhcpopt_db # noqa
from neutron.db import extraroute_db # noqa from neutron.db import extraroute_db # noqa
from neutron.db import flavors_db # noqa
from neutron.db import l3_agentschedulers_db # noqa from neutron.db import l3_agentschedulers_db # noqa
from neutron.db import l3_attrs_db # noqa from neutron.db import l3_attrs_db # noqa
from neutron.db import l3_db # noqa from neutron.db import l3_db # noqa

View File

@ -163,5 +163,16 @@
"get_service_provider": "rule:regular_user", "get_service_provider": "rule:regular_user",
"get_lsn": "rule:admin_only", "get_lsn": "rule:admin_only",
"create_lsn": "rule:admin_only" "create_lsn": "rule:admin_only",
"create_flavor": "rule:admin_only",
"update_flavor": "rule:admin_only",
"delete_flavor": "rule:admin_only",
"get_flavors": "rule:regular_user",
"get_flavor": "rule:regular_user",
"create_service_profile": "rule:admin_only",
"update_service_profile": "rule:admin_only",
"delete_service_profile": "rule:admin_only",
"get_service_profiles": "rule:admin_only",
"get_service_profile": "rule:admin_only"
} }

View File

@ -45,7 +45,7 @@ class NetworkClientJSON(service_client.ServiceClient):
# The following list represents resource names that do not require # The following list represents resource names that do not require
# changing underscore to a hyphen # changing underscore to a hyphen
hyphen_exceptions = ["health_monitors", "firewall_rules", hyphen_exceptions = ["health_monitors", "firewall_rules",
"firewall_policies"] "firewall_policies", "service_profiles"]
# the following map is used to construct proper URI # the following map is used to construct proper URI
# for the given neutron resource # for the given neutron resource
service_resource_prefix_map = { service_resource_prefix_map = {