From c700771d72721705653760ce137b9e7267e50ec4 Mon Sep 17 00:00:00 2001 From: Salvatore Orlando Date: Fri, 7 Dec 2012 06:33:48 -0800 Subject: [PATCH] API extension and DB support for service types Blueprint quantum-service-type This patch allows for managing service types through the API. The default service type is specified in the configuration file. The patch also provides a 'dummy' API extension, which uses the 'dummy' service plugin, as a PoC for usage of service type. The dummy API extension is used in unit tests only. Change-Id: I97d400b941fa7925b0efa0fd0d35c07419ff6bfa --- etc/policy.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/etc/policy.json b/etc/policy.json index 2961b388..d40741c0 100644 --- a/etc/policy.json +++ b/etc/policy.json @@ -41,5 +41,11 @@ "get_port": "rule:admin_or_owner", "update_port": "rule:admin_or_owner", "update_port:fixed_ips": "rule:admin_or_network_owner", - "delete_port": "rule:admin_or_owner" + "delete_port": "rule:admin_or_owner", + + "extension:service_type:view_extended": "rule:admin_only", + "create_service_type": "rule:admin_only", + "update_service_type": "rule:admin_only", + "delete_service_type": "rule:admin_only", + "get_service_type": "rule:regular_user" }