Using RestApiCallNode instead of RestconfApiCallNode and updating templates accordingly.
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / sotn-otn-tunnel-service.json
1 {
2     "ietf-te:te": {
3         "tunnels":{
4             "tunnel":[
5                 {
6                 "destination": ${ietf-te_te.tunnels.tunnel[0].destination},
7                 "source": ${ietf-te_te.tunnels.tunnel[0].source},
8                 "src-ttp-id": ${ietf-te_te.tunnels.tunnel[0].src-ttp-id},
9                 "dst-ttp-id": ${ietf-te_te.tunnels.tunnel[0].dst-ttp-id},
10                 "ietf-otn-tunnel:src-tpn": ${ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_src-tpn},
11                 "ietf-otn-tunnel:dst-tpn": ${ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn},
12                 "te-bandwidth": {
13                     "ietf-otn-tunnel:odu-type": "ietf-otn-types:prot-ODUFlex-gfp"
14                 },
15                 "encoding": "ietf-te-types:lsp-encoding-oduk",
16                 "name": ${ietf-te_te.tunnels.tunnel[0].name},
17                 "restoration": {
18                     "enable": "false",
19                     "hold-off-time": "0",
20                     "restoration-reversion-disable": "true",
21                     "restoration-type": "ietf-te-types:lsp-restoration-restore-any",
22                     "wait-to-revert": "0"
23                 },
24                 "switching-type": "ietf-te-types:switching-otn",
25                 "provisioning-state": "ietf-te-types:tunnel-state-down",
26                 "te-topology-identifier": {
27                     "client-id": ${ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id},
28                 "provider-id": ${ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id},
29                 "topology-id": ${ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id}
30             }
31             },
32                 {
33                 "destination": ${ietf-te_te.tunnels.tunnel[1].destination},
34                 "source": ${ietf-te_te.tunnels.tunnel[1].source},
35                 "encoding": "ietf-te-types:lsp-encoding-packet",
36                 "name": ${ietf-te_te.tunnels.tunnel[1].name},
37                 "dependency-tunnels": {
38                     "dependency-tunnel": [
39                         {
40                         "name": ${ietf-te_te.tunnels.tunnel[0].name},
41                         "encoding": "ietf-te-types:lsp-encoding-oduk",
42                         "switching-type": "ietf-te-types:switching-otn"
43                         }
44                     ]
45                 },
46                 "switching-type": "ietf-te-types:switching-psc1",
47                 "te-topology-identifier": {
48                     "client-id": ${ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id},
49                 "provider-id": ${ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id},
50                 "topology-id": ${ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id}
51             },
52             "provisioning-state": "ietf-te-types:tunnel-state-down"
53             }
54             ]
55         }
56     }
57 }