Making sure not to use the same CLL instance name for all endpoints' description...
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / cll-ethernet-service-loop.json
index e4198aa..acbf4ba 100644 (file)
@@ -1,11 +1,11 @@
 {
     "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},
                 "etht-svc-descr": "Ethernet-over-OTN",
-                "etht-svc-type": "ietf-eth-tran-types:p2p-svc",
+                "etht-svc-type": "ietf-eth-tran-types:rmp-svc",
                 "te-topology-identifier":{
                     "provider-id": ${provider-id},
                     "client-id": ${client-id},
@@ -19,6 +19,7 @@
                             },
                         }
                     ]
+                },
                 "resilience":{
                     "protection":{
                         "enable":"true",
                     ${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": ${ethernet-srv-end-points-list[${1}].service-instance-id-or-cll-id},
                             "etht-svc-access-points":[
                                 {
                                     "access-point-id": ${ethernet-srv-end-points-list[${1}].index-number},
                                     "access-node-id": ${ethernet-srv-end-points-list[${1}].eth-node-id},
                                     "access-ltp-id": ${ethernet-srv-end-points-list[${1}].eth-node-tp-id},
                                     "access-role": ${ethernet-srv-end-points-list[${1}].leafOrRootAccess}
-                                        // "ietf-eth-tran-types:leaf-access"
-                                        // "ietf-eth-tran-types:root-primary"
                                 }
                             ],
                             "outer-tag":{
@@ -56,6 +56,7 @@
                         },
                     }
                 ]
+            }
         ]
     }
 }