summaryrefslogtreecommitdiffstats
path: root/platform-logic/restapi-templates/src/main/json/ts-otn-tunnel-domainG.json
blob: 7cd0d528fde453f9c2addda154eaf309142aa7a6 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
  "ietf-te:te": {
    "tunnels": {
      "tunnel": [
        {
          "name": ${otn-tunnel-name-domainG},
        "source": ${src-node-id},
        "destination": ${dst-node-id},
        "src-tunnel-tp-id": ${src-ttp-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-in-segment":{
                "label-restrictions":{
                  "label-restriction":[
                    {
                      "index" :1,
                      "label-start":{
                        "te-label":{
                          "ietf-otn-tunnel:otn-tpn": ${src-tpn-id}
                  }
                  }
                  }
                  ]
                }
              },
              "path-out-segment":{
                "label-restrictions":{
                  "label-restriction":[
                    {
                      "index" :1,
                      "label-start":{
                        "te-label":{
                          "ietf-otn-tunnel:otn-tpn": ${dst-tpn-id}
                  }
                  }
                  }
                  ]
                }
              }
            }
          ]
        }
      }
      ]
    }
  }
}