aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/restapi-templates/src/main/json/cll-otn-tunnel-src-domain.json
blob: 6dce14c98fe8cc3ff9d960b6ef7523b1c051c7a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
  "ietf-te:te": {
    "tunnels": {
      "tunnel": [
        {
          "name": ${otn-tunnel-name-src-domain},
          "source": ${src-node-id},
          "destination": ${dst-node-id},
          "dst-tunnel-tp-id": ${dst-ttp-id},
          "te-bandwidth": {
            "ietf-otn-tunnel:otn": {
              "ietf-otn-tunnel:odu-type": "ietf-layer1-types:ODUflex",
              "ietf-otn-tunnel:gfp-n": ${gfp-n}
            }
          },
          "encoding": "ietf-te-types:lsp-encoding-oduk",
          "switching-type": "ietf-te-types:switching-otn",
          "protection": {
            "enable": "true",
            "hold-off-time": "0",
            "protection-reversion-disable": "true",
            "protection-type": "ietf-te-types:lsp-protection-unprotected",
            "wait-to-revert": "0"
          },
          "admin-state": "ietf-te-types:tunnel-admin-state-up",
          "primary-paths":{
            "primary-path" :[
             {
               "name":"primary",
               "path-out-segment":{
                 "label-restrictions":{
                   "label-restriction":[
                     {
                       "index" :1,
                       "label-start":{
                         "te-label":{
                            "ietf-otn-tunnel:otn-tpn": ${dst-tpn-id}
                         }
                       }
                     }
                   ]
                 }
               }
             }
           ]
          }
         }
      ]
    }
  }
}