Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / cll-ethernet-service-loop-protection.json
1 {
2     "ietf-eth-tran-service:etht-svc":{
3         "etht-svc-instances":[
4             {
5                 "etht-svc-name": ${eth-service-name},
6                 "ietf-optical-slice:slice-id": ${slice-id},
7                 "etht-svc-descr": "Ethernet-over-OTN",
8                 "etht-svc-type": "ietf-eth-tran-types:rmp-svc",
9                 "te-topology-identifier":{
10                     "provider-id": ${provider-id},
11                     "client-id": ${client-id},
12                     "topology-id": ${topology-id}
13                 },
14                 "underlay":{
15                     "otn-tunnels": [
16                         ${repeat:otn-tunnels-name-list_length:
17                             {
18                                 "name": ${otn-tunnels-name-list[${1}].otn-tunnel-name}
19                             },
20                         }
21                     ]
22                 },
23                 "resilience":{
24                     "protection":{
25                         "enable":"true",
26                         "hold-off-time":"0",
27                         "protection-reversion-disable":"true",
28                         "protection-type":"ietf-te-types:lsp-protection-bidir-1-plus-1",
29                         "wait-to-revert":"0"
30                     }
31                 },
32                 "admin-status":"ietf-te-types:tunnel-admin-state-up",
33                 "etht-svc-end-points":[
34                     ${repeat:ethernet-srv-end-points-list_length:
35                         {
36                             "etht-svc-end-point-name": ${ethernet-srv-end-points-list[${1}].ethernet-end-point-name},
37                             "etht-svc-end-point-descr": ${ethernet-srv-end-points-list[${1}].service-instance-id-or-cll-id},
38                             "etht-svc-access-points":[
39                                 {
40                                     "access-point-id": ${ethernet-srv-end-points-list[${1}].index-number},
41                                     "access-node-id": ${ethernet-srv-end-points-list[${1}].eth-node-id},
42                                     "access-ltp-id": ${ethernet-srv-end-points-list[${1}].eth-node-tp-id},
43                                     "access-role": ${ethernet-srv-end-points-list[${1}].leafOrRootAccess}
44                                 }
45                             ],
46                             "outer-tag":{
47                                 "tag-type":"ietf-eth-tran-types:classify-c-vlan",
48                                 "vlan-value":${ethernet-srv-end-points-list[${1}].cvlan}
49                             },
50                             "service-classification-type":"ietf-eth-tran-types:vlan-classification",
51                             "ingress-egress-bandwidth-profile":{
52                                 "bandwidth-profile-type":"ietf-eth-tran-types:mef-10-bwp",
53                                 "CIR": ${ethernet-srv-end-points-list[${1}].CIR},
54                                 "EIR": ${ethernet-srv-end-points-list[${1}].EIR}
55                             }
56                         },
57                     }
58                 ]
59             }
60         ]
61     }
62 }