summaryrefslogtreecommitdiffstats
path: root/platform-logic/restapi-templates
diff options
context:
space:
mode:
authorHesam Rahimi <hesam.rahimi@huawei.com>2020-11-11 16:01:57 +0000
committerHesam Rahimi <hesam.rahimi@huawei.com>2020-11-12 03:51:50 +0000
commit1d98b77f5794ce6f2ec457ae5cc73a5d4601491a (patch)
treefc4caa524e1d6a1929408dbcbfe3485f3dfa7336 /platform-logic/restapi-templates
parentbe9c4ac3e4723913ba37f2acc11a14e77165b332 (diff)
- Changing POST operation to PATCH for OTN Tunnel creation.
- Adding Transport Slicing DGs into graph.versions - Fixing template files for OTN tunnel creation Issue-ID: SDNC-1413 Change-Id: I3ddabd4c0d361a4e0d5e98caf86e9bb361b41b63 Signed-off-by: Hesam Rahimi <hesam.rahimi@huawei.com> Former-commit-id: 97afd8c7495cf23e8819cb666be9ccbe4f968f68
Diffstat (limited to 'platform-logic/restapi-templates')
-rw-r--r--platform-logic/restapi-templates/src/main/json/ts-coloring-uni-port.json6
-rw-r--r--platform-logic/restapi-templates/src/main/json/ts-otn-tunnel-dst-domain.json3
-rw-r--r--platform-logic/restapi-templates/src/main/json/ts-otn-tunnel-src-domain.json3
3 files changed, 9 insertions, 3 deletions
diff --git a/platform-logic/restapi-templates/src/main/json/ts-coloring-uni-port.json b/platform-logic/restapi-templates/src/main/json/ts-coloring-uni-port.json
index a29586a2..f4b978b2 100644
--- a/platform-logic/restapi-templates/src/main/json/ts-coloring-uni-port.json
+++ b/platform-logic/restapi-templates/src/main/json/ts-coloring-uni-port.json
@@ -1,3 +1,7 @@
{
- "ietf-optical-slice:tp-slice-id": ${slice-instance-id}
+ "ietf-te-topology:te": {
+ "ietf-optical-slice:slice-id-list": [
+ ${slice-instance-id}
+ ]
+ }
}
diff --git a/platform-logic/restapi-templates/src/main/json/ts-otn-tunnel-dst-domain.json b/platform-logic/restapi-templates/src/main/json/ts-otn-tunnel-dst-domain.json
index 0a4f7142..40b1888e 100644
--- a/platform-logic/restapi-templates/src/main/json/ts-otn-tunnel-dst-domain.json
+++ b/platform-logic/restapi-templates/src/main/json/ts-otn-tunnel-dst-domain.json
@@ -8,7 +8,8 @@
"ietf-otn-tunnel:src-tpn": ${src-tpn-id},
"src-ttp-id": ${src-ttp-id},
"te-bandwidth": {
- "ietf-otn-tunnel:odu-type": "ietf-otn-types:prot-ODU2"
+ "ietf-otn-tunnel:odu-type": "ietf-otn-types:prot-ODUFlex-gfp",
+ "ietf-otn-tunnel:gfp-n": ${gfp-n}
},
"ietf-otn-tunnel:dst-tributary-slot-count": 1,
"ietf-optical-slice:slice-id": ${slice-instance-id},
diff --git a/platform-logic/restapi-templates/src/main/json/ts-otn-tunnel-src-domain.json b/platform-logic/restapi-templates/src/main/json/ts-otn-tunnel-src-domain.json
index 425caab6..cbfde9f4 100644
--- a/platform-logic/restapi-templates/src/main/json/ts-otn-tunnel-src-domain.json
+++ b/platform-logic/restapi-templates/src/main/json/ts-otn-tunnel-src-domain.json
@@ -8,7 +8,8 @@
"ietf-otn-tunnel:dst-tpn": ${dst-tpn-id},
"dst-ttp-id": ${dst-ttp-id},
"te-bandwidth": {
- "ietf-otn-tunnel:odu-type": "ietf-otn-types:prot-ODU2"
+ "ietf-otn-tunnel:odu-type": "ietf-otn-types:prot-ODUFlex-gfp",
+ "ietf-otn-tunnel:gfp-n": ${gfp-n}
},
"ietf-otn-tunnel:dst-tributary-slot-count": 1,
"ietf-optical-slice:slice-id": ${slice-instance-id},