Using RestApiCallNode instead of RestconfApiCallNode and updating templates accordingly.
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / sotn-ethernet-service.json
1 {
2     "ietf-eth-tran-service:etht-svc": {
3         "etht-svc-instances": [
4             {
5                 "etht-svc-name": ${prop.global.sotn.etht-svc-name},
6                 "te-topology-identifier":{
7                     "provider-id":${oof.vpn.access-provider-id},
8                     "client-id":${oof.vpn.access-client-id},
9                     "topology-id":${oof.vpn.access-topology-id}
10                 },
11                 "etht-svc-type": "ietf-eth-tran-types:p2p-svc",
12                 "underlay":{
13                     "pw":{
14                         "pw-name":"pwName",
15                         "pw-id":"123",
16                         "pw-paths":[
17                             {
18                                 "path-id":"123",
19                                 "tp-tunnels":[
20                                     {
21                                         "name":"tptunnel-22"
22                                     }
23                                 ]
24                             }
25                         ]
26                     }
27                 },
28                 "resilience":{
29                     "protection":{
30                         "enable":"true",
31                         "hold-off-time":"0",
32                         "protection-reversion-disable":"true",
33                         "protection-type":"ietf-te-types:lsp-protection-unprotected",
34                         "wait-to-revert":"0"
35                     }
36                 },
37                 "admin-status": "ietf-te-types:tunnel-state-up",
38                 "etht-svc-end-points":[
39                     {
40                         "etht-svc-end-point-name":"source-point-name",
41                         "etht-svc-access-points":[
42                             {
43                             "access-point-id":"0",
44                             "access-node-id":${oof.vpn.access-node-id},
45                             "access-ltp-id":${oof.vpn.src-access-ltp-id}
46                             },
47                             {
48                             "access-point-id":"1",
49                             "access-node-id":${oof.vpn.access-node-id},
50                             "access-ltp-id":${oof.vpn.dst-access-ltp-id}
51                             }
52                         ],
53                         "outer-tag":{
54                             "tag-type":"ietf-eth-tran-types:classify-c-vlan",
55                             "vlan-value":1
56                         },
57                         "service-classification-type":"ietf-eth-tran-types:vlan-classification",
58                         "ingress-egress-bandwidth-profile":${prop.global.sotn.bandwidth-profile-name}
59                     }
60                 ]
61             }
62         ]
63     }
64 }