aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main
diff options
context:
space:
mode:
authorVidyashree Rama <vidyashree.rama@huawei.com>2019-08-02 14:53:45 +0530
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-08-06 08:52:26 +0000
commit4f088f2a33d9202238eab9fbc78b4eb7510d1438 (patch)
treeaa399de7938878077f83e4839e5937b274f8de80 /catalog-be/src/main
parent6e1773c260290e4fc29da2b1505bc63d3ec3595d (diff)
RestConf - Policy model support
Adding policy model for restconf collector Issue-ID: SDC-2101 Change-Id: Id41f2acfe02e955a066ceadddd1eb576fff3fdcf Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
Diffstat (limited to 'catalog-be/src/main')
-rw-r--r--catalog-be/src/main/resources/import/tosca/data-types/dataTypes.yml109
-rw-r--r--catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.json4
-rw-r--r--catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.yml12
3 files changed, 125 insertions, 0 deletions
diff --git a/catalog-be/src/main/resources/import/tosca/data-types/dataTypes.yml b/catalog-be/src/main/resources/import/tosca/data-types/dataTypes.yml
index 0514799902..759bba4d7c 100644
--- a/catalog-be/src/main/resources/import/tosca/data-types/dataTypes.yml
+++ b/catalog-be/src/main/resources/import/tosca/data-types/dataTypes.yml
@@ -2413,3 +2413,112 @@ onap.datatypes.monitoring.thresholds:
description: "Version number associated with the threshold"
required: true
type: string
+
+### Data types used by Policy Restconf Collector ###
+
+onap.datatypes.monitoring.rcc_policy:
+ derived_from: tosca.datatypes.Root
+ properties:
+ controller_name:
+ type: string
+ description: Name of controller
+ required: true
+ controller_restapiUrl:
+ type: string
+ description: Controller's ip and port
+ required: true
+ controller_restapiUser:
+ type: string
+ description: Controller's username
+ required: true
+ controller_restapiPassword:
+ type: string
+ description: Controller's password
+ required: true
+ controller_accessTokenUrl:
+ type: string
+ description: URL to get access token
+ required: true
+ controller_accessTokenFile:
+ type: string
+ description: Access token file path
+ required: true
+ controller_accessTokenMethod:
+ type: string
+ description: Access token method POST/GET/PUT etc
+ required: true
+ constraints:
+ - valid_values: [ post, get, put]
+ controller_subsMethod:
+ type: string
+ description: Subscription method POST/GET/PUT etc
+ required: true
+ default: post
+ constraints:
+ - valid_values: [ post, get, put]
+ controller_subscriptionUrl:
+ type: string
+ description: URL to establish subscription
+ required: true
+ controller_disableSsl:
+ type: boolean
+ description: Option to disable ssl
+ required: true
+ default: true
+ event_details:
+ type: list
+ description: event details
+ required: true
+ entry_schema:
+ type : onap.datatypes.monitoring.rcc_event_details
+
+onap.datatypes.monitoring.rcc_event_details:
+ derived_from: tosca.datatypes.Root
+ properties:
+ event_name:
+ type: string
+ description: event name
+ required: true
+ event_description:
+ type: string
+ description: description of event
+ required: false
+ event_sseventUrlEmbed:
+ type: boolean
+ description: Whether SSE url is embedded in subscription response
+ required: true
+ default: true
+ event_sseventsField:
+ type: string
+ description: Field name to access SSE url in subscription response
+ required: true
+ event_sseventsUrl:
+ type: string
+ description: Explicit SSE url
+ required: true
+ event_subscriptionTemplate:
+ type: string
+ description: Subscription template file path
+ required: true
+ event_unSubscriptionTemplate:
+ type: string
+ description: Unsubscription template file path
+ required: false
+ event_ruleId:
+ type: integer
+ description: Rule Id
+ required: false
+ modifyData:
+ type: boolean
+ description: Whether to modify the received SSE event
+ required: true
+ default: false
+ modifyMethod:
+ type: string
+ description: The java method name to modify data
+ required: false
+ userData:
+ type: string
+ description: The user specific data
+ required: false
+
diff --git a/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.json b/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.json
index e483e36bef..1b4581ac2f 100644
--- a/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.json
+++ b/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.json
@@ -59,6 +59,10 @@
"displayName": "PM Mapper",
"icon": "policy-dcae-pm-mapper"
},
+ "onap.policy.monitoring.dcae-restconfcollector": {
+ "displayName": "Restconf Collector",
+ "icon": "policy-dcae-restconfcollector"
+ },
"tosca.policies.nfv.InstantiationLevels": {
"displayName": "NFV InstantiationLevels",
"icon": "policy-nfv-instantiationlevels"
diff --git a/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.yml b/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.yml
index b6f158fc06..b50108e330 100644
--- a/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.yml
+++ b/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.yml
@@ -142,6 +142,18 @@ onap.policy.monitoring.dcae-pm-mapper:
entry_schema:
type: onap.datatypes.monitoring.pm-mapper-filter
+## Restconf collector policy for closed loop ##
+
+onap.policies.monitoring.dcae-restconfcollector:
+ derived_from: onap.policies.Monitoring
+ version: 1.0.0
+ properties:
+ rcc_policy:
+ type: list
+ description: RCC Policy JSON
+ entry_schema:
+ type: onap.datatypes.monitoring.rcc_policy
+
## NFV policies ##
tosca.policies.nfv.InstantiationLevels:
derived_from: tosca.policies.Root