New DGs required for creation of a cloud leased-line (E-TREE) service.
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / cll-ethernet-service-loop.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:p2p-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                 "resilience":{
23                     "protection":{
24                         "enable":"true",
25                         "hold-off-time":"0",
26                         "protection-reversion-disable":"true",
27                         "protection-type":"ietf-te-types:lsp-protection-unprotected",
28                         "wait-to-revert":"0"
29                     }
30                 },
31                 "admin-status":"ietf-te-types:tunnel-admin-state-up",
32                 "etht-svc-end-points":[
33                     ${repeat:ethernet-srv-end-points-list_length:
34                         {
35                             "etht-svc-end-point-name": ${ethernet-srv-end-points-list[${1}].ethernet-end-point-name},
36                             "etht-svc-access-points":[
37                                 {
38                                     "access-point-id": ${ethernet-srv-end-points-list[${1}].index-number},
39                                     "access-node-id": ${ethernet-srv-end-points-list[${1}].eth-node-id},
40                                     "access-ltp-id": ${ethernet-srv-end-points-list[${1}].eth-node-tp-id},
41                                     "access-role": ${ethernet-srv-end-points-list[${1}].leafOrRootAccess}
42                                         // "ietf-eth-tran-types:leaf-access"
43                                         // "ietf-eth-tran-types:root-primary"
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 }