Completing the logic and the call flow for Transport Slicing operations:
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / ts-ethernet-service.json
1 {
2     "ietf-eth-tran-service:etht-svc":{
3         "etht-svc-instances":[
4             {
5                 "etht-svc-name": ${eth-service-name},
6                 "etht-svc-descr": "Ethernet-over-OTN",
7                 "etht-svc-type": "ietf-eth-tran-types:p2p-svc",
8                 "te-topology-identifier":{
9                     "provider-id": ${provider-id},
10                     "client-id": ${client-id},
11                     "topology-id": ${topology-id}
12                 },
13                 "underlay":{
14                     "otn-tunnels": [{
15                         "name": ${otn-tunnel-name}
16                     }]
17                 },
18                 "resilience":{
19                     "protection":{
20                         "enable":"true",
21                         "hold-off-time":"0",
22                         "protection-reversion-disable":"true",
23                         "protection-type":"ietf-te-types:lsp-protection-unprotected",
24                         "wait-to-revert":"0"
25                     }
26                 },
27                 "admin-status":"ietf-te-types:tunnel-admin-state-up",
28                 "etht-svc-end-points":[
29                     {
30                         "etht-svc-end-point-name": ${ethernet-end-point-name},
31                         "etht-svc-access-points":[
32                             {
33                                 "access-point-id": ${index-number},
34                                 "access-node-id": ${eth-node-id},
35                                 "access-ltp-id": ${eth-node-tp-id}
36                             }
37                         ],
38                         "outer-tag":{
39                             "tag-type":"ietf-eth-tran-types:classify-c-vlan",
40                             "vlan-value":1
41                         },
42                         "service-classification-type":"ietf-eth-tran-types:vlan-classification",
43                         "ingress-egress-bandwidth-profile":{
44                             "bandwidth-profile-type":"ietf-eth-tran-types:mef-10-bwp",
45                             "CIR":5000,
46                             "EIR":5000
47                         }
48                     }
49                 ]
50             }
51         ]
52     }
53 }