aboutsummaryrefslogtreecommitdiffstats
path: root/products
diff options
context:
space:
mode:
Diffstat (limited to 'products')
-rw-r--r--products/onap-dublin/features/integration/src/main/resources/script/ovp-tosca-vnf-provision.py93
-rw-r--r--products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-schema-dublin.yaml4
-rw-r--r--products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-version-schema-dublin.yaml8
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/customer/customer-delete-schema-elalto.yaml46
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/owning-entity/owning-entity-list-schema-elalto.yaml52
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-all-schema-elalto-moco.json700
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-all-schema-elalto-sample.yaml291
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-schema-elalto-moco.json43
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-schema-elalto-sample.yaml42
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-version-schema-elalto-moco.json43
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-version-schema-elalto-sample.yaml42
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-all-schema-elalto.yaml49
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-schema-elalto.yaml58
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-version-schema-elalto.yaml63
14 files changed, 1483 insertions, 51 deletions
diff --git a/products/onap-dublin/features/integration/src/main/resources/script/ovp-tosca-vnf-provision.py b/products/onap-dublin/features/integration/src/main/resources/script/ovp-tosca-vnf-provision.py
index 11193fd9..f382e8cb 100644
--- a/products/onap-dublin/features/integration/src/main/resources/script/ovp-tosca-vnf-provision.py
+++ b/products/onap-dublin/features/integration/src/main/resources/script/ovp-tosca-vnf-provision.py
@@ -366,51 +366,54 @@ def provision_vnf():
result_json['ns_id'] = ''
result_json['ns_status'] = ''
- # 1.Setup cloud and service
- #setup cloud and region
- create_complex(parameters)
- register_all_clouds(parameters)
-
- # setup subscription and customer
- create_service_type(parameters)
- create_customer(parameters)
- add_customer_subscription(parameters)
-
- # setup vnfm
- register_vnfm(parameters)
-
- # Setup License
- vlm_output = create_vlm(parameters)
- print "vlm parameters={}".format(vlm_output)
-
- # 2. on-board VSP
- vsp_id = create_vsp(parameters, vlm_output)
- print "vsp id={}".format(vsp_id)
-
- # 3. model VF
- vf_model_dict = create_vf_model(parameters, vsp_id)
- print "vf model parameters={}".format(vf_model_dict)
- vf_id = vf_model_dict["vf_id"]
- vf_unique_id = vf_model_dict["vf_unique_id"]
-
- # 4. model NS and 5. Approve and distribute
- service_model_list = create_service_model(parameters, vf_unique_id)
- print "service model parameters={}".format(service_model_list)
-
- # 6. onboard VNF
- vnf_onboard_output = onboard_vnf(parameters)
- print vnf_onboard_output
-
- # 7. onboard NS
- ns_onboard_out = onboard_ns(parameters)
- print ns_onboard_out
-
- # 8. create NS
- ns_instance_id = create_ns(parameters, ns_package_output)
- print ns_instance_id
-
- instantiate_ns_output = instantiate_ns(parameters, ns_instance_id)
- print instantiate_ns_output
+ def _provision():
+ # 1.Setup cloud and service
+ #setup cloud and region
+ create_complex(parameters)
+ register_all_clouds(parameters)
+
+ # setup subscription and customer
+ create_service_type(parameters)
+ create_customer(parameters)
+ add_customer_subscription(parameters)
+
+ # setup vnfm
+ register_vnfm(parameters)
+
+ # Setup License
+ vlm_output = create_vlm(parameters)
+ print "vlm parameters={}".format(vlm_output)
+
+ # 2. on-board VSP
+ vsp_id = create_vsp(parameters, vlm_output)
+ print "vsp id={}".format(vsp_id)
+
+ # 3. model VF
+ vf_model_dict = create_vf_model(parameters, vsp_id)
+ print "vf model parameters={}".format(vf_model_dict)
+ vf_id = vf_model_dict["vf_id"]
+ vf_unique_id = vf_model_dict["vf_unique_id"]
+
+ # 4. model NS and 5. Approve and distribute
+ service_model_list = create_service_model(parameters, vf_unique_id)
+ print "service model parameters={}".format(service_model_list)
+
+ # 6. onboard VNF
+ vnf_onboard_output = onboard_vnf(parameters)
+ print vnf_onboard_output
+
+ # 7. onboard NS
+ ns_onboard_out = onboard_ns(parameters)
+ print ns_onboard_out
+
+ # 8. create NS
+ ns_instance_id = create_ns(parameters, ns_package_output)
+ print ns_instance_id
+
+ instantiate_ns_output = instantiate_ns(parameters, ns_instance_id)
+ print instantiate_ns_output
+
+ _provision()
return result_json
diff --git a/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-schema-dublin.yaml b/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-schema-dublin.yaml
index 5b2dd407..d9b6236b 100644
--- a/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-schema-dublin.yaml
+++ b/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-schema-dublin.yaml
@@ -25,8 +25,8 @@ parameters:
- name: policy-type-id
description: Policy type ID
type: string
- long-option: policy-type-id
- short-option: x
+ long_option: policy-type-id
+ short_option: x
is_optional: false
results:
diff --git a/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-version-schema-dublin.yaml b/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-version-schema-dublin.yaml
index 57b12c25..ac4a55cd 100644
--- a/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-version-schema-dublin.yaml
+++ b/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-version-schema-dublin.yaml
@@ -25,14 +25,14 @@ parameters:
- name: policy-type-id
description: Policy type ID
type: string
- long-option: policy-type-id
- short-option: x
+ long_option: policy-type-id
+ short_option: x
is_optional: false
- name: version-id
description: Policy type version ID
type: string
- long-option: version-id
- short-option: y
+ long_option: version-id
+ short_option: y
is_optional: false
results:
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/customer/customer-delete-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/customer/customer-delete-schema-elalto.yaml
new file mode 100644
index 00000000..c2561a07
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/customer/customer-delete-schema-elalto.yaml
@@ -0,0 +1,46 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: customer-delete
+description: Delete a customer from Onap
+
+info:
+ product: onap-elalto
+ service: aai
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: customer-name
+ description: Onap customer-name
+ type: string
+ short_option: x
+ long_option: customer-name
+ is_optional: false
+ - name: resource-version
+ description: Onap customer resource version
+ type: uuid
+ short_option: y
+ long_option: resource-version
+ is_optional: false
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v16/business/customers/customer/${customer-name}?resource-version=${resource-version}
+ method: DELETE
+ success_codes:
+ - 204
+ - 404
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/owning-entity/owning-entity-list-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/owning-entity/owning-entity-list-schema-elalto.yaml
new file mode 100644
index 00000000..708d480c
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/owning-entity/owning-entity-list-schema-elalto.yaml
@@ -0,0 +1,52 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: owning-entity-list
+description: Lists the Owning Entities in Onap
+
+info:
+ product: onap-elalto
+ service: aai
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: name
+ description: Owning entity name
+ scope: short
+ type: string
+ - name: Id
+ description: Owning entity Id
+ scope: short
+ type: string
+ - name: resource-version
+ description: Owning entity resource version
+ scope: short
+ type: string
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v16/business/owning-entities
+ method: GET
+ success_codes:
+ - 200
+ - 404
+ result_map:
+ name: $b{owning-entity.[*].owning-entity-name}
+ Id: $b{owning-entity.[*].owning-entity-id}
+ resource-version: $b{owning-entity.[*].resource-version}
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-all-schema-elalto-moco.json b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-all-schema-elalto-moco.json
new file mode 100644
index 00000000..59610dc9
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-all-schema-elalto-moco.json
@@ -0,0 +1,700 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/policy/api/v1/policytypes",
+ "headers" : {
+ "Authorization" : "Basic aGVhbHRoY2hlY2s6emIhWHp0RzM0",
+ "Accept" : "application/json",
+ "Environment" : "TEST",
+ "ClientAuth" : "cHl0aG9uOnRlc3Q=",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "tosca_definitions_version" : "tosca_simple_yaml_1_0_0",
+ "policy_types" : [ {
+ "onap.policies.Monitoring" : {
+ "properties" : { },
+ "name" : "onap.policies.Monitoring",
+ "version" : "1.0.0",
+ "derived_from" : "tosca.policies.Root:0.0.0",
+ "metadata" : { },
+ "description" : "a base policy type for all policies that govern monitoring provision"
+ },
+ "onap.policies.Optimization" : {
+ "properties" : { },
+ "name" : "onap.policies.Optimization",
+ "version" : "1.0.0",
+ "derived_from" : "tosca.policies.Root:0.0.0",
+ "metadata" : { },
+ "description" : "a base policy type for all policies that govern optimization"
+ },
+ "onap.policies.controlloop.Guard" : {
+ "properties" : { },
+ "name" : "onap.policies.controlloop.Guard",
+ "version" : "1.0.0",
+ "derived_from" : "tosca.policies.Root:0.0.0",
+ "metadata" : { },
+ "description" : "Guard Policies for Control Loop Operational Policies"
+ },
+ "onap.policies.controlloop.Operational" : {
+ "properties" : { },
+ "name" : "onap.policies.controlloop.Operational",
+ "version" : "1.0.0",
+ "derived_from" : "tosca.policies.Root:0.0.0",
+ "metadata" : { },
+ "description" : "Operational Policy for Control Loops"
+ },
+ "onap.policies.controlloop.guard.Blacklist" : {
+ "properties" : {
+ "blacklist_policy" : {
+ "name" : "blacklist_policy",
+ "type" : "map",
+ "typeVersion" : "0.0.0",
+ "required" : false,
+ "entry_schema" : {
+ "type" : "onap.datatypes.guard.Blacklist",
+ "typeVersion" : "0.0.0"
+ }
+ }
+ },
+ "name" : "onap.policies.controlloop.guard.Blacklist",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.controlloop.Guard:0.0.0",
+ "metadata" : { },
+ "description" : "Supports blacklist of VNF's from performing control loop actions on."
+ },
+ "onap.policies.controlloop.guard.FrequencyLimiter" : {
+ "properties" : {
+ "frequency_policy" : {
+ "name" : "frequency_policy",
+ "type" : "map",
+ "typeVersion" : "0.0.0",
+ "required" : false,
+ "entry_schema" : {
+ "type" : "onap.datatypes.guard.FrequencyLimiter",
+ "typeVersion" : "0.0.0"
+ }
+ }
+ },
+ "name" : "onap.policies.controlloop.guard.FrequencyLimiter",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.controlloop.Guard:0.0.0",
+ "metadata" : { },
+ "description" : "Supports limiting the frequency of actions being taken by a Actor."
+ },
+ "onap.policies.controlloop.guard.MinMax" : {
+ "properties" : {
+ "minmax_policy" : {
+ "name" : "minmax_policy",
+ "type" : "map",
+ "typeVersion" : "0.0.0",
+ "required" : false,
+ "entry_schema" : {
+ "type" : "onap.datatypes.guard.MinMax",
+ "typeVersion" : "0.0.0"
+ }
+ }
+ },
+ "name" : "onap.policies.controlloop.guard.MinMax",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.controlloop.Guard:0.0.0",
+ "metadata" : { },
+ "description" : "Supports Min/Max number of VF Modules"
+ },
+ "onap.policies.monitoring.cdap.tca.hi.lo.app" : {
+ "properties" : {
+ "tca_policy" : {
+ "name" : "tca_policy",
+ "type" : "map",
+ "typeVersion" : "0.0.0",
+ "description" : "TCA Policy JSON",
+ "required" : false,
+ "entry_schema" : {
+ "type" : "onap.datatypes.monitoring.tca_policy",
+ "typeVersion" : "0.0.0"
+ }
+ }
+ },
+ "name" : "onap.policies.monitoring.cdap.tca.hi.lo.app",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.Monitoring:0.0.0",
+ "metadata" : { }
+ },
+ "onap.policies.monitoring.dcaegen2.collectors.datafile.datafile-app-server" : {
+ "properties" : {
+ "datafile.policy" : {
+ "name" : "datafile.policy",
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "description" : "datafile Policy JSON as string",
+ "required" : false
+ },
+ "buscontroller_feed_publishing_endpoint" : {
+ "name" : "buscontroller_feed_publishing_endpoint",
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "description" : "DMAAP Bus Controller feed endpoint",
+ "required" : false
+ }
+ },
+ "name" : "onap.policies.monitoring.dcaegen2.collectors.datafile.datafile-app-server",
+ "version" : "1.0.0",
+ "derived_from" : "policy.nodes.Root:0.0.0",
+ "metadata" : { }
+ },
+ "onap.policies.optimization.AffinityPolicy" : {
+ "properties" : {
+ "identity" : {
+ "name" : "identity",
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "policyScope" : {
+ "name" : "policyScope",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "scope where the policy is applicable",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "affinityProperties" : {
+ "name" : "affinityProperties",
+ "type" : "policy.data.affinityProperties_properties",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "resources" : {
+ "name" : "resources",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "applicableResources" : {
+ "name" : "applicableResources",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "any", "all" ]
+ } ]
+ }
+ },
+ "policyType" : {
+ "name" : "policyType",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "type of a policy",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "zone" ]
+ } ]
+ }
+ }
+ },
+ "name" : "onap.policies.optimization.AffinityPolicy",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.Optimization:0.0.0",
+ "metadata" : { }
+ },
+ "onap.policies.optimization.DistancePolicy" : {
+ "properties" : {
+ "identity" : {
+ "name" : "identity",
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "policyScope" : {
+ "name" : "policyScope",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "scope where the policy is applicable",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "distanceProperties" : {
+ "name" : "distanceProperties",
+ "type" : "policy.data.distanceProperties_properties",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "applicableResources" : {
+ "name" : "applicableResources",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "any", "all" ]
+ } ]
+ }
+ },
+ "policyType" : {
+ "name" : "policyType",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "type of a policy",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "distance_to_location" ]
+ } ]
+ }
+ },
+ "resources" : {
+ "name" : "resources",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ }
+ },
+ "name" : "onap.policies.optimization.DistancePolicy",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.Optimization:0.0.0",
+ "metadata" : { }
+ },
+ "onap.policies.optimization.HpaPolicy" : {
+ "properties" : {
+ "policyType" : {
+ "name" : "policyType",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "type of a policy",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "hpa" ]
+ } ]
+ }
+ },
+ "identity" : {
+ "name" : "identity",
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "flavorFeatures" : {
+ "name" : "flavorFeatures",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "policy.data.flavorFeatures_properties",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "policyScope" : {
+ "name" : "policyScope",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "scope where the policy is applicable",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "resources" : {
+ "name" : "resources",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ }
+ },
+ "name" : "onap.policies.optimization.HpaPolicy",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.Optimization:0.0.0",
+ "metadata" : { }
+ },
+ "onap.policies.optimization.OptimizationPolicy" : {
+ "properties" : {
+ "policyType" : {
+ "name" : "policyType",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "type of a policy",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "placement_optimization" ]
+ } ]
+ }
+ },
+ "objectiveParameter" : {
+ "name" : "objectiveParameter",
+ "type" : "policy.data.objectiveParameter_properties",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "identity" : {
+ "name" : "identity",
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "objective" : {
+ "name" : "objective",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "minimize", "maximize" ]
+ } ]
+ }
+ },
+ "policyScope" : {
+ "name" : "policyScope",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "scope where the policy is applicable",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ }
+ },
+ "name" : "onap.policies.optimization.OptimizationPolicy",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.Optimization:0.0.0",
+ "metadata" : { }
+ },
+ "onap.policies.optimization.PciPolicy" : {
+ "properties" : {
+ "policyType" : {
+ "name" : "policyType",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "type of a policy",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "pciPolicy" ]
+ } ]
+ }
+ },
+ "identity" : {
+ "name" : "identity",
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "pciProperties" : {
+ "name" : "pciProperties",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : false,
+ "entry_schema" : {
+ "type" : "policy.data.pciProperties_properties",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "policyScope" : {
+ "name" : "policyScope",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "scope where the policy is applicable",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "resources" : {
+ "name" : "resources",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ }
+ },
+ "name" : "onap.policies.optimization.PciPolicy",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.Optimization:0.0.0",
+ "metadata" : { }
+ },
+ "onap.policies.optimization.QueryPolicy" : {
+ "properties" : {
+ "policyScope" : {
+ "name" : "policyScope",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "scope where the policy is applicable",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "identity" : {
+ "name" : "identity",
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "queryProperties" : {
+ "name" : "queryProperties",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "policy.data.queryProperties_properties",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "policyType" : {
+ "name" : "policyType",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "type of a policy",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "request_param_query" ]
+ } ]
+ }
+ }
+ },
+ "name" : "onap.policies.optimization.QueryPolicy",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.Optimization:0.0.0",
+ "metadata" : { }
+ },
+ "onap.policies.optimization.SubscriberPolicy" : {
+ "properties" : {
+ "policyScope" : {
+ "name" : "policyScope",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "scope where the policy is applicable",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "properties" : {
+ "name" : "properties",
+ "type" : "policy.data.properties_properties",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "identity" : {
+ "name" : "identity",
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "policyType" : {
+ "name" : "policyType",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "type of a policy",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "subscriberPolicy" ]
+ } ]
+ }
+ }
+ },
+ "name" : "onap.policies.optimization.SubscriberPolicy",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.Optimization:0.0.0",
+ "metadata" : { }
+ },
+ "onap.policies.optimization.Vim_fit" : {
+ "properties" : {
+ "identity" : {
+ "name" : "identity",
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "policyScope" : {
+ "name" : "policyScope",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "scope where the policy is applicable",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "resources" : {
+ "name" : "resources",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "capacityProperties" : {
+ "name" : "capacityProperties",
+ "type" : "policy.data.capacityProperties_properties",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "applicableResources" : {
+ "name" : "applicableResources",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "any", "all" ]
+ } ]
+ }
+ },
+ "policyType" : {
+ "name" : "policyType",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "type of a policy",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "vim_fit" ]
+ } ]
+ }
+ }
+ },
+ "name" : "onap.policies.optimization.Vim_fit",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.Optimization:0.0.0",
+ "metadata" : { }
+ },
+ "onap.policies.optimization.VnfPolicy" : {
+ "properties" : {
+ "identity" : {
+ "name" : "identity",
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "required" : true
+ },
+ "policyScope" : {
+ "name" : "policyScope",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "scope where the policy is applicable",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "vnfProperties" : {
+ "name" : "vnfProperties",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "policy.data.vnfProperties_properties",
+ "typeVersion" : "0.0.0"
+ }
+ },
+ "applicableResources" : {
+ "name" : "applicableResources",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "any", "all" ]
+ } ]
+ }
+ },
+ "policyType" : {
+ "name" : "policyType",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "description" : "type of a policy",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0",
+ "constraints" : [ {
+ "valid_values" : [ "vnfPolicy" ]
+ } ]
+ }
+ },
+ "resources" : {
+ "name" : "resources",
+ "type" : "list",
+ "typeVersion" : "0.0.0",
+ "required" : true,
+ "entry_schema" : {
+ "type" : "string",
+ "typeVersion" : "0.0.0"
+ }
+ }
+ },
+ "name" : "onap.policies.optimization.VnfPolicy",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.Optimization:0.0.0",
+ "metadata" : { }
+ }
+ } ],
+ "name" : "ToscaServiceTemplateSimple",
+ "version" : "1.0.0"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-all-schema-elalto-sample.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-all-schema-elalto-sample.yaml
new file mode 100644
index 00000000..251ac210
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-all-schema-elalto-sample.yaml
@@ -0,0 +1,291 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_sample_version: 1.0
+name: policy-type-list-all
+version: onap-elalto
+samples:
+ sample1:
+ name: policy-type-list-all
+ input: -m https://172.16.0.82:6969 -u healthcheck -p zb!XztG34
+ moco: policy-type-list-all-schema-elalto-moco.json
+ output: |
+ +----------------------------------------------------+
+ |Type properties |
+ +----------------------------------------------------+
+ |tosca_simple_yaml_1_0_0 |
+ +----------------------------------------------------+
+ |[{"onap.policies.Monitoring":{"properties":{},"nam |
+ |e":"onap.policies.Monitoring","version":"1.0.0","d |
+ |erived_from":"tosca.policies.Root:0.0.0","metadata |
+ |":{},"description":"a base policy type for all |
+ |policies that govern monitoring provision"},"onap. |
+ |policies.Optimization":{"properties":{},"name":"on |
+ |ap.policies.Optimization","version":"1.0.0","deriv |
+ |ed_from":"tosca.policies.Root:0.0.0","metadata":{} |
+ |,"description":"a base policy type for all |
+ |policies that govern optimization"},"onap.policies |
+ |.controlloop.Guard":{"properties":{},"name":"onap. |
+ |policies.controlloop.Guard","version":"1.0.0","der |
+ |ived_from":"tosca.policies.Root:0.0.0","metadata": |
+ |{},"description":"Guard Policies for Control Loop |
+ |Operational Policies"},"onap.policies.controlloop. |
+ |Operational":{"properties":{},"name":"onap.policie |
+ |s.controlloop.Operational","version":"1.0.0","deri |
+ |ved_from":"tosca.policies.Root:0.0.0","metadata":{ |
+ |},"description":"Operational Policy for Control Lo |
+ |ops"},"onap.policies.controlloop.guard.Blacklist": |
+ |{"properties":{"blacklist_policy":{"name":"blackli |
+ |st_policy","type":"map","typeVersion":"0.0.0","req |
+ |uired":false,"entry_schema":{"type":"onap.datatype |
+ |s.guard.Blacklist","typeVersion":"0.0.0"}}},"name" |
+ |:"onap.policies.controlloop.guard.Blacklist","vers |
+ |ion":"1.0.0","derived_from":"onap.policies.control |
+ |loop.Guard:0.0.0","metadata":{},"description":"Sup |
+ |ports blacklist of VNF's from performing control |
+ |loop actions on."},"onap.policies.controlloop.guar |
+ |d.FrequencyLimiter":{"properties":{"frequency_poli |
+ |cy":{"name":"frequency_policy","type":"map","typeV |
+ |ersion":"0.0.0","required":false,"entry_schema":{" |
+ |type":"onap.datatypes.guard.FrequencyLimiter","typ |
+ |eVersion":"0.0.0"}}},"name":"onap.policies.control |
+ |loop.guard.FrequencyLimiter","version":"1.0.0","de |
+ |rived_from":"onap.policies.controlloop.Guard:0.0.0 |
+ |","metadata":{},"description":"Supports limiting |
+ |the frequency of actions being taken by a Actor."} |
+ |,"onap.policies.controlloop.guard.MinMax":{"proper |
+ |ties":{"minmax_policy":{"name":"minmax_policy","ty |
+ |pe":"map","typeVersion":"0.0.0","required":false," |
+ |entry_schema":{"type":"onap.datatypes.guard.MinMax |
+ |","typeVersion":"0.0.0"}}},"name":"onap.policies.c |
+ |ontrolloop.guard.MinMax","version":"1.0.0","derive |
+ |d_from":"onap.policies.controlloop.Guard:0.0.0","m |
+ |etadata":{},"description":"Supports Min\/Max |
+ |number of VF Modules"},"onap.policies.monitoring.c |
+ |dap.tca.hi.lo.app":{"properties":{"tca_policy":{"n |
+ |ame":"tca_policy","type":"map","typeVersion":"0.0. |
+ |0","description":"TCA Policy JSON","required":fals |
+ |e,"entry_schema":{"type":"onap.datatypes.monitorin |
+ |g.tca_policy","typeVersion":"0.0.0"}}},"name":"ona |
+ |p.policies.monitoring.cdap.tca.hi.lo.app","version |
+ |":"1.0.0","derived_from":"onap.policies.Monitoring |
+ |:0.0.0","metadata":{}},"onap.policies.monitoring.d |
+ |caegen2.collectors.datafile.datafile-app-server":{ |
+ |"properties":{"datafile.policy":{"name":"datafile. |
+ |policy","type":"string","typeVersion":"0.0.0","des |
+ |cription":"datafile Policy JSON as string","requir |
+ |ed":false},"buscontroller_feed_publishing_endpoint |
+ |":{"name":"buscontroller_feed_publishing_endpoint" |
+ |,"type":"string","typeVersion":"0.0.0","descriptio |
+ |n":"DMAAP Bus Controller feed endpoint","required" |
+ |:false}},"name":"onap.policies.monitoring.dcaegen2 |
+ |.collectors.datafile.datafile-app-server","version |
+ |":"1.0.0","derived_from":"policy.nodes.Root:0.0.0" |
+ |,"metadata":{}},"onap.policies.optimization.Affini |
+ |tyPolicy":{"properties":{"identity":{"name":"ident |
+ |ity","type":"string","typeVersion":"0.0.0","requir |
+ |ed":true},"policyScope":{"name":"policyScope","typ |
+ |e":"list","typeVersion":"0.0.0","description":"sco |
+ |pe where the policy is applicable","required":true |
+ |,"entry_schema":{"type":"string","typeVersion":"0. |
+ |0.0"}},"affinityProperties":{"name":"affinityPrope |
+ |rties","type":"policy.data.affinityProperties_prop |
+ |erties","typeVersion":"0.0.0","required":true},"re |
+ |sources":{"name":"resources","type":"list","typeVe |
+ |rsion":"0.0.0","required":true,"entry_schema":{"ty |
+ |pe":"string","typeVersion":"0.0.0"}},"applicableRe |
+ |sources":{"name":"applicableResources","type":"lis |
+ |t","typeVersion":"0.0.0","required":true,"entry_sc |
+ |hema":{"type":"string","typeVersion":"0.0.0","cons |
+ |traints":[{"valid_values":["any","all"]}]}},"polic |
+ |yType":{"name":"policyType","type":"list","typeVer |
+ |sion":"0.0.0","description":"type of a policy","re |
+ |quired":true,"entry_schema":{"type":"string","type |
+ |Version":"0.0.0","constraints":[{"valid_values":[" |
+ |zone"]}]}}},"name":"onap.policies.optimization.Aff |
+ |inityPolicy","version":"1.0.0","derived_from":"ona |
+ |p.policies.Optimization:0.0.0","metadata":{}},"ona |
+ |p.policies.optimization.DistancePolicy":{"properti |
+ |es":{"identity":{"name":"identity","type":"string" |
+ |,"typeVersion":"0.0.0","required":true},"policySco |
+ |pe":{"name":"policyScope","type":"list","typeVersi |
+ |on":"0.0.0","description":"scope where the policy |
+ |is applicable","required":true,"entry_schema":{"ty |
+ |pe":"string","typeVersion":"0.0.0"}},"distanceProp |
+ |erties":{"name":"distanceProperties","type":"polic |
+ |y.data.distanceProperties_properties","typeVersion |
+ |":"0.0.0","required":true},"applicableResources":{ |
+ |"name":"applicableResources","type":"list","typeVe |
+ |rsion":"0.0.0","required":true,"entry_schema":{"ty |
+ |pe":"string","typeVersion":"0.0.0","constraints":[ |
+ |{"valid_values":["any","all"]}]}},"policyType":{"n |
+ |ame":"policyType","type":"list","typeVersion":"0.0 |
+ |.0","description":"type of a policy","required":tr |
+ |ue,"entry_schema":{"type":"string","typeVersion":" |
+ |0.0.0","constraints":[{"valid_values":["distance_t |
+ |o_location"]}]}},"resources":{"name":"resources"," |
+ |type":"list","typeVersion":"0.0.0","required":true |
+ |,"entry_schema":{"type":"string","typeVersion":"0. |
+ |0.0"}}},"name":"onap.policies.optimization.Distanc |
+ |ePolicy","version":"1.0.0","derived_from":"onap.po |
+ |licies.Optimization:0.0.0","metadata":{}},"onap.po |
+ |licies.optimization.HpaPolicy":{"properties":{"pol |
+ |icyType":{"name":"policyType","type":"list","typeV |
+ |ersion":"0.0.0","description":"type of a policy"," |
+ |required":true,"entry_schema":{"type":"string","ty |
+ |peVersion":"0.0.0","constraints":[{"valid_values": |
+ |["hpa"]}]}},"identity":{"name":"identity","type":" |
+ |string","typeVersion":"0.0.0","required":true},"fl |
+ |avorFeatures":{"name":"flavorFeatures","type":"lis |
+ |t","typeVersion":"0.0.0","required":true,"entry_sc |
+ |hema":{"type":"policy.data.flavorFeatures_properti |
+ |es","typeVersion":"0.0.0"}},"policyScope":{"name": |
+ |"policyScope","type":"list","typeVersion":"0.0.0", |
+ |"description":"scope where the policy is applicabl |
+ |e","required":true,"entry_schema":{"type":"string" |
+ |,"typeVersion":"0.0.0"}},"resources":{"name":"reso |
+ |urces","type":"list","typeVersion":"0.0.0","requir |
+ |ed":true,"entry_schema":{"type":"string","typeVers |
+ |ion":"0.0.0"}}},"name":"onap.policies.optimization |
+ |.HpaPolicy","version":"1.0.0","derived_from":"onap |
+ |.policies.Optimization:0.0.0","metadata":{}},"onap |
+ |.policies.optimization.OptimizationPolicy":{"prope |
+ |rties":{"policyType":{"name":"policyType","type":" |
+ |list","typeVersion":"0.0.0","description":"type |
+ |of a policy","required":true,"entry_schema":{"type |
+ |":"string","typeVersion":"0.0.0","constraints":[{" |
+ |valid_values":["placement_optimization"]}]}},"obje |
+ |ctiveParameter":{"name":"objectiveParameter","type |
+ |":"policy.data.objectiveParameter_properties","typ |
+ |eVersion":"0.0.0","required":true},"identity":{"na |
+ |me":"identity","type":"string","typeVersion":"0.0. |
+ |0","required":true},"objective":{"name":"objective |
+ |","type":"list","typeVersion":"0.0.0","required":t |
+ |rue,"entry_schema":{"type":"string","typeVersion": |
+ |"0.0.0","constraints":[{"valid_values":["minimize" |
+ |,"maximize"]}]}},"policyScope":{"name":"policyScop |
+ |e","type":"list","typeVersion":"0.0.0","descriptio |
+ |n":"scope where the policy is applicable","require |
+ |d":true,"entry_schema":{"type":"string","typeVersi |
+ |on":"0.0.0"}}},"name":"onap.policies.optimization. |
+ |OptimizationPolicy","version":"1.0.0","derived_fro |
+ |m":"onap.policies.Optimization:0.0.0","metadata":{ |
+ |}},"onap.policies.optimization.PciPolicy":{"proper |
+ |ties":{"policyType":{"name":"policyType","type":"l |
+ |ist","typeVersion":"0.0.0","description":"type of |
+ |a policy","required":true,"entry_schema":{"type":" |
+ |string","typeVersion":"0.0.0","constraints":[{"val |
+ |id_values":["pciPolicy"]}]}},"identity":{"name":"i |
+ |dentity","type":"string","typeVersion":"0.0.0","re |
+ |quired":true},"pciProperties":{"name":"pciProperti |
+ |es","type":"list","typeVersion":"0.0.0","required" |
+ |:false,"entry_schema":{"type":"policy.data.pciProp |
+ |erties_properties","typeVersion":"0.0.0"}},"policy |
+ |Scope":{"name":"policyScope","type":"list","typeVe |
+ |rsion":"0.0.0","description":"scope where the |
+ |policy is applicable","required":true,"entry_schem |
+ |a":{"type":"string","typeVersion":"0.0.0"}},"resou |
+ |rces":{"name":"resources","type":"list","typeVersi |
+ |on":"0.0.0","required":true,"entry_schema":{"type" |
+ |:"string","typeVersion":"0.0.0"}}},"name":"onap.po |
+ |licies.optimization.PciPolicy","version":"1.0.0"," |
+ |derived_from":"onap.policies.Optimization:0.0.0"," |
+ |metadata":{}},"onap.policies.optimization.QueryPol |
+ |icy":{"properties":{"policyScope":{"name":"policyS |
+ |cope","type":"list","typeVersion":"0.0.0","descrip |
+ |tion":"scope where the policy is applicable","requ |
+ |ired":true,"entry_schema":{"type":"string","typeVe |
+ |rsion":"0.0.0"}},"identity":{"name":"identity","ty |
+ |pe":"string","typeVersion":"0.0.0","required":true |
+ |},"queryProperties":{"name":"queryProperties","typ |
+ |e":"list","typeVersion":"0.0.0","required":true,"e |
+ |ntry_schema":{"type":"policy.data.queryProperties_ |
+ |properties","typeVersion":"0.0.0"}},"policyType":{ |
+ |"name":"policyType","type":"list","typeVersion":"0 |
+ |.0.0","description":"type of a policy","required": |
+ |true,"entry_schema":{"type":"string","typeVersion" |
+ |:"0.0.0","constraints":[{"valid_values":["request_ |
+ |param_query"]}]}}},"name":"onap.policies.optimizat |
+ |ion.QueryPolicy","version":"1.0.0","derived_from": |
+ |"onap.policies.Optimization:0.0.0","metadata":{}}, |
+ |"onap.policies.optimization.SubscriberPolicy":{"pr |
+ |operties":{"policyScope":{"name":"policyScope","ty |
+ |pe":"list","typeVersion":"0.0.0","description":"sc |
+ |ope where the policy is applicable","required":tru |
+ |e,"entry_schema":{"type":"string","typeVersion":"0 |
+ |.0.0"}},"properties":{"name":"properties","type":" |
+ |policy.data.properties_properties","typeVersion":" |
+ |0.0.0","required":true},"identity":{"name":"identi |
+ |ty","type":"string","typeVersion":"0.0.0","require |
+ |d":true},"policyType":{"name":"policyType","type": |
+ |"list","typeVersion":"0.0.0","description":"type |
+ |of a policy","required":true,"entry_schema":{"type |
+ |":"string","typeVersion":"0.0.0","constraints":[{" |
+ |valid_values":["subscriberPolicy"]}]}}},"name":"on |
+ |ap.policies.optimization.SubscriberPolicy","versio |
+ |n":"1.0.0","derived_from":"onap.policies.Optimizat |
+ |ion:0.0.0","metadata":{}},"onap.policies.optimizat |
+ |ion.Vim_fit":{"properties":{"identity":{"name":"id |
+ |entity","type":"string","typeVersion":"0.0.0","req |
+ |uired":true},"policyScope":{"name":"policyScope"," |
+ |type":"list","typeVersion":"0.0.0","description":" |
+ |scope where the policy is applicable","required":t |
+ |rue,"entry_schema":{"type":"string","typeVersion": |
+ |"0.0.0"}},"resources":{"name":"resources","type":" |
+ |list","typeVersion":"0.0.0","required":true,"entry |
+ |_schema":{"type":"string","typeVersion":"0.0.0"}}, |
+ |"capacityProperties":{"name":"capacityProperties", |
+ |"type":"policy.data.capacityProperties_properties" |
+ |,"typeVersion":"0.0.0","required":true},"applicabl |
+ |eResources":{"name":"applicableResources","type":" |
+ |list","typeVersion":"0.0.0","required":true,"entry |
+ |_schema":{"type":"string","typeVersion":"0.0.0","c |
+ |onstraints":[{"valid_values":["any","all"]}]}},"po |
+ |licyType":{"name":"policyType","type":"list","type |
+ |Version":"0.0.0","description":"type of a policy", |
+ |"required":true,"entry_schema":{"type":"string","t |
+ |ypeVersion":"0.0.0","constraints":[{"valid_values" |
+ |:["vim_fit"]}]}}},"name":"onap.policies.optimizati |
+ |on.Vim_fit","version":"1.0.0","derived_from":"onap |
+ |.policies.Optimization:0.0.0","metadata":{}},"onap |
+ |.policies.optimization.VnfPolicy":{"properties":{" |
+ |identity":{"name":"identity","type":"string","type |
+ |Version":"0.0.0","required":true},"policyScope":{" |
+ |name":"policyScope","type":"list","typeVersion":"0 |
+ |.0.0","description":"scope where the policy is app |
+ |licable","required":true,"entry_schema":{"type":"s |
+ |tring","typeVersion":"0.0.0"}},"vnfProperties":{"n |
+ |ame":"vnfProperties","type":"list","typeVersion":" |
+ |0.0.0","required":true,"entry_schema":{"type":"pol |
+ |icy.data.vnfProperties_properties","typeVersion":" |
+ |0.0.0"}},"applicableResources":{"name":"applicable |
+ |Resources","type":"list","typeVersion":"0.0.0","re |
+ |quired":true,"entry_schema":{"type":"string","type |
+ |Version":"0.0.0","constraints":[{"valid_values":[" |
+ |any","all"]}]}},"policyType":{"name":"policyType", |
+ |"type":"list","typeVersion":"0.0.0","description": |
+ |"type of a policy","required":true,"entry_schema": |
+ |{"type":"string","typeVersion":"0.0.0","constraint |
+ |s":[{"valid_values":["vnfPolicy"]}]}},"resources": |
+ |{"name":"resources","type":"list","typeVersion":"0 |
+ |.0.0","required":true,"entry_schema":{"type":"stri |
+ |ng","typeVersion":"0.0.0"}}},"name":"onap.policies |
+ |.optimization.VnfPolicy","version":"1.0.0","derive |
+ |d_from":"onap.policies.Optimization:0.0.0","metada |
+ |ta":{}}}] |
+ +----------------------------------------------------+
+ |ToscaServiceTemplateSimple |
+ +----------------------------------------------------+
+ |1.0.0 |
+ +----------------------------------------------------+ \ No newline at end of file
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-schema-elalto-moco.json b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-schema-elalto-moco.json
new file mode 100644
index 00000000..6323a4ca
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-schema-elalto-moco.json
@@ -0,0 +1,43 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app",
+ "headers" : {
+ "Authorization" : "Basic aGVhbHRoY2hlY2s6emIhWHp0RzM0",
+ "Accept" : "application/json",
+ "Environment" : "TEST",
+ "ClientAuth" : "cHl0aG9uOnRlc3Q=",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "tosca_definitions_version" : "tosca_simple_yaml_1_0_0",
+ "policy_types" : [ {
+ "onap.policies.monitoring.cdap.tca.hi.lo.app" : {
+ "properties" : {
+ "tca_policy" : {
+ "name" : "tca_policy",
+ "type" : "map",
+ "typeVersion" : "0.0.0",
+ "description" : "TCA Policy JSON",
+ "required" : false,
+ "entry_schema" : {
+ "type" : "onap.datatypes.monitoring.tca_policy",
+ "typeVersion" : "0.0.0"
+ }
+ }
+ },
+ "name" : "onap.policies.monitoring.cdap.tca.hi.lo.app",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.Monitoring:0.0.0",
+ "metadata" : { }
+ }
+ } ],
+ "name" : "ToscaServiceTemplateSimple",
+ "version" : "1.0.0"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-schema-elalto-sample.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-schema-elalto-sample.yaml
new file mode 100644
index 00000000..08fca73f
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-schema-elalto-sample.yaml
@@ -0,0 +1,42 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_sample_version: 1.0
+name: policy-type-list
+version: onap-elalto
+samples:
+ sample1:
+ name: policy-type-list
+ input: --policy-type-id onap.policies.monitoring.cdap.tca.hi.lo.app -m https://172.16.0.82:6969 -u healthcheck -p zb!XztG34
+ moco: policy-type-list-schema-elalto-moco.json
+ output: |
+ +----------------------------------------------------+
+ |Type properties |
+ +----------------------------------------------------+
+ |tosca_simple_yaml_1_0_0 |
+ +----------------------------------------------------+
+ |[{"onap.policies.monitoring.cdap.tca.hi.lo.app":{" |
+ |properties":{"tca_policy":{"name":"tca_policy","ty |
+ |pe":"map","typeVersion":"0.0.0","description":"TCA |
+ | Policy JSON","required":false,"entry_schema":{"ty |
+ |pe":"onap.datatypes.monitoring.tca_policy","typeVe |
+ |rsion":"0.0.0"}}},"name":"onap.policies.monitoring |
+ |.cdap.tca.hi.lo.app","version":"1.0.0","derived_fr |
+ |om":"onap.policies.Monitoring:0.0.0","metadata":{} |
+ |}}] |
+ +----------------------------------------------------+
+ |ToscaServiceTemplateSimple |
+ +----------------------------------------------------+
+ |1.0.0 |
+ +----------------------------------------------------+ \ No newline at end of file
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-version-schema-elalto-moco.json b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-version-schema-elalto-moco.json
new file mode 100644
index 00000000..45b7591e
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-version-schema-elalto-moco.json
@@ -0,0 +1,43 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0",
+ "headers" : {
+ "Authorization" : "Basic aGVhbHRoY2hlY2s6emIhWHp0RzM0",
+ "Accept" : "application/json",
+ "Environment" : "TEST",
+ "ClientAuth" : "cHl0aG9uOnRlc3Q=",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "tosca_definitions_version" : "tosca_simple_yaml_1_0_0",
+ "policy_types" : [ {
+ "onap.policies.monitoring.cdap.tca.hi.lo.app" : {
+ "properties" : {
+ "tca_policy" : {
+ "name" : "tca_policy",
+ "type" : "map",
+ "typeVersion" : "0.0.0",
+ "description" : "TCA Policy JSON",
+ "required" : false,
+ "entry_schema" : {
+ "type" : "onap.datatypes.monitoring.tca_policy",
+ "typeVersion" : "0.0.0"
+ }
+ }
+ },
+ "name" : "onap.policies.monitoring.cdap.tca.hi.lo.app",
+ "version" : "1.0.0",
+ "derived_from" : "onap.policies.Monitoring:0.0.0",
+ "metadata" : { }
+ }
+ } ],
+ "name" : "ToscaServiceTemplateSimple",
+ "version" : "1.0.0"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-version-schema-elalto-sample.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-version-schema-elalto-sample.yaml
new file mode 100644
index 00000000..845abd67
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-version-schema-elalto-sample.yaml
@@ -0,0 +1,42 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_sample_version: 1.0
+name: policy-type-list-with-version
+version: onap-elalto
+samples:
+ sample1:
+ name: policy-type-list-with-version
+ input: --policy-type-id onap.policies.monitoring.cdap.tca.hi.lo.app --version-id 1.0.0 -m https://172.16.0.82:6969 -u healthcheck -p zb!XztG34
+ moco: policy-type-list-with-version-schema-elalto-moco.json
+ output: |
+ +----------------------------------------------------+
+ |Type properties |
+ +----------------------------------------------------+
+ |tosca_simple_yaml_1_0_0 |
+ +----------------------------------------------------+
+ |[{"onap.policies.monitoring.cdap.tca.hi.lo.app":{" |
+ |properties":{"tca_policy":{"name":"tca_policy","ty |
+ |pe":"map","typeVersion":"0.0.0","description":"TCA |
+ | Policy JSON","required":false,"entry_schema":{"ty |
+ |pe":"onap.datatypes.monitoring.tca_policy","typeVe |
+ |rsion":"0.0.0"}}},"name":"onap.policies.monitoring |
+ |.cdap.tca.hi.lo.app","version":"1.0.0","derived_fr |
+ |om":"onap.policies.Monitoring:0.0.0","metadata":{} |
+ |}}] |
+ +----------------------------------------------------+
+ |ToscaServiceTemplateSimple |
+ +----------------------------------------------------+
+ |1.0.0 |
+ +----------------------------------------------------+
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-all-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-all-schema-elalto.yaml
new file mode 100644
index 00000000..9aa77141
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-all-schema-elalto.yaml
@@ -0,0 +1,49 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: policy-type-list-all
+description: Retrieve existing policy types
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: Type properties
+ description: Policy type properties
+ scope: short
+ type: json
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /policy/api/v1/policytypes
+ method: GET
+ headers:
+ Accept: application/json
+ Environment: TEST
+
+ success_codes:
+ - 200
+
+ result_map:
+ Type properties: $b{$.[*]}
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-schema-elalto.yaml
new file mode 100644
index 00000000..a7e32765
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-schema-elalto.yaml
@@ -0,0 +1,58 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: policy-type-list
+description: Retrieve existing policy types
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-type-id
+ description: Policy type ID
+ type: string
+ long_option: policy-type-id
+ short_option: x
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: Type properties
+ description: Policy type properties
+ scope: short
+ type: json
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /policy/api/v1/policytypes/${policy-type-id}
+ method: GET
+ headers:
+ Accept: application/json
+ Environment: TEST
+
+
+ success_codes:
+ - 200
+
+ result_map:
+ Type properties: $b{$.[*]}
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-version-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-version-schema-elalto.yaml
new file mode 100644
index 00000000..5b484de8
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-version-schema-elalto.yaml
@@ -0,0 +1,63 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: policy-type-list-with-version
+description: Retrieve one particular version of a policy type
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-type-id
+ description: Policy type ID
+ type: string
+ long_option: policy-type-id
+ short_option: x
+ is_optional: false
+ - name: version-id
+ description: Policy type version ID
+ type: string
+ long_option: version-id
+ short_option: y
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: Type properties
+ description: Policy type properties
+ scope: short
+ type: json
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /policy/api/v1/policytypes/${policy-type-id}/versions/${version-id}
+ method: GET
+ headers:
+ Accept: application/json
+ Environment: TEST
+
+ success_codes:
+ - 200
+
+ result_map:
+ Type properties: $b{$.[*]}