aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/restapi-templates
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/restapi-templates')
-rw-r--r--platform-logic/restapi-templates/src/main/json/cll-call-ves.json34
-rw-r--r--platform-logic/restapi-templates/src/main/json/cll-create-pm-data.json17
-rw-r--r--platform-logic/restapi-templates/src/main/json/cll-ethernet-service-loop.json3
-rw-r--r--platform-logic/restapi-templates/src/main/json/cll-subscribe-notification.json1
-rw-r--r--platform-logic/restapi-templates/src/main/json/cll-terminate-notification.json1
5 files changed, 55 insertions, 1 deletions
diff --git a/platform-logic/restapi-templates/src/main/json/cll-call-ves.json b/platform-logic/restapi-templates/src/main/json/cll-call-ves.json
new file mode 100644
index 00000000..0074c34c
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/cll-call-ves.json
@@ -0,0 +1,34 @@
+{
+ "event": {
+ "commonEventHeader": {
+ "version": "4.0.1",
+ "vesEventListenerVersion": "7.0.1",
+ "domain": "ccvpnNotification",
+ "eventName": "ccvpnNotification_CloudLeaseLine_BandwidthChanged",
+ "eventId": ${eventIdUuid},
+ "lastEpochMicrosec": 8745745764578,
+ "priority": "Normal",
+ "reportingEntityName": "onap-sdnc",
+ "sequence": 0,
+ "sourceName": "onap-sdnc",
+ "startEpochMicrosec": 8745745764578,
+ "timeZoneOffset": "UTC-05.00"
+ },
+ "ccvpnNotificationFields": {
+ "changeIdentifier": "PM_BW_UPDATE",
+ "changeType": "BandwidthChanged",
+ "ccvpnNotificationFieldsVersion": "2.0",
+ "arrayOfNamedHashMap": [
+ {
+ "name": ${eventNameUuid},
+ "hashMap": {
+ "cllId": ${cclId},
+ "uniId": ${uniId},
+ "bandwidthValue": ${bandwidthValue},
+ "time": "2022-02-08T11:13:34.781-05:00"
+ }
+ }
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/platform-logic/restapi-templates/src/main/json/cll-create-pm-data.json b/platform-logic/restapi-templates/src/main/json/cll-create-pm-data.json
new file mode 100644
index 00000000..101e9b9d
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/cll-create-pm-data.json
@@ -0,0 +1,17 @@
+{
+ "ietf-service-pm:performance-monitoring": {
+ "service-pm": [
+ {
+ "service-name": ${eth-service-name},
+ "task-pm-enable": true,
+ "granularity": "ietf-service-pm:granularity-1min",
+ "performance-data-config": [
+ {
+ "parameter-name": "ietf-service-pm:ingress-bandwidth",
+ "measure-method": "ietf-service-pm:measure-at-ingress"
+ }
+ ]
+ }
+ ]
+ }
+}
diff --git a/platform-logic/restapi-templates/src/main/json/cll-ethernet-service-loop.json b/platform-logic/restapi-templates/src/main/json/cll-ethernet-service-loop.json
index b058169d..24968f71 100644
--- a/platform-logic/restapi-templates/src/main/json/cll-ethernet-service-loop.json
+++ b/platform-logic/restapi-templates/src/main/json/cll-ethernet-service-loop.json
@@ -1,6 +1,6 @@
{
"ietf-eth-tran-service:etht-svc":{
- "etht-svc-instances":[
+ "etht-svc-instances": [
{
"etht-svc-name": ${eth-service-name},
"ietf-optical-slice:slice-id": ${slice-id},
@@ -34,6 +34,7 @@
${repeat:ethernet-srv-end-points-list_length:
{
"etht-svc-end-point-name": ${ethernet-srv-end-points-list[${1}].ethernet-end-point-name},
+ "etht-svc-end-point-descr": ${service-instance-id-or-cll-id},
"etht-svc-access-points":[
{
"access-point-id": ${ethernet-srv-end-points-list[${1}].index-number},
diff --git a/platform-logic/restapi-templates/src/main/json/cll-subscribe-notification.json b/platform-logic/restapi-templates/src/main/json/cll-subscribe-notification.json
new file mode 100644
index 00000000..02fd8a54
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/cll-subscribe-notification.json
@@ -0,0 +1 @@
+{ "ietf-subscribed-notifications:input": { "encoding": "encode-json" } } \ No newline at end of file
diff --git a/platform-logic/restapi-templates/src/main/json/cll-terminate-notification.json b/platform-logic/restapi-templates/src/main/json/cll-terminate-notification.json
new file mode 100644
index 00000000..1b407a3d
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/cll-terminate-notification.json
@@ -0,0 +1 @@
+{ "ietf-subscribed-notifications:input": { "identifier": ${subscriptionId} } } \ No newline at end of file