From a570279284c69c109fbef69b4fee1a9fd30efe7a Mon Sep 17 00:00:00 2001 From: Hesam Rahimi Date: Wed, 13 May 2020 23:26:53 +0000 Subject: Using RestApiCallNode instead of RestconfApiCallNode and updating templates accordingly. - This is also required for F release. Issue-ID: SDNC-1184 Signed-off-by: Hesam Rahimi Change-Id: I527253d75dd1e49e87877b17588c1d4c2c3dbed1 (cherry picked from commit 45668145649102a2b1b2378e682c8e23f756a8b8 [formerly ca9f45cb92f35a6f0235f0a84e8d7b2f50e0e0de]) Former-commit-id: a8786d6a8732bb691c5a08583af4d8b960b764d0 --- ...URCE-API_sotn-get-otn-tunnel-path-from-oof.json | 64 +++- ...ESOURCE-API_sotn-vf-operation-uni-activate.json | 22 +- ...OURCE-API_sotn-get-otn-tunnel-path-from-oof.xml | 2 +- ...RESOURCE-API_sotn-vf-operation-uni-activate.xml | 426 ++++++++++++--------- .../src/main/json/sotn-ethernet-service.json | 80 ++-- .../src/main/json/sotn-otn-tunnel-service.json | 72 ++-- 6 files changed, 398 insertions(+), 268 deletions(-) (limited to 'platform-logic') diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-get-otn-tunnel-path-from-oof.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-get-otn-tunnel-path-from-oof.json index c785b72d..044737f5 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-get-otn-tunnel-path-from-oof.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-get-otn-tunnel-path-from-oof.json @@ -371,9 +371,9 @@ "wires": [ [ "dd179bba.27e578", - "a736e107.ab857", "51dd454b.e64094", - "e9ba305b.3f7b08" + "e9ba305b.3f7b08", + "a736e107.ab857" ] ] }, @@ -388,24 +388,6 @@ "z": "5b68e0d.bd97b2", "wires": [] }, - { - "id": "a736e107.ab857", - "type": "get-resource", - "name": "get-resource src tp", - "xml": "\n \n \n\n\n", - "comments": "", - "outputs": 1, - "x": 2359.5001220703125, - "y": 529, - "z": "5b68e0d.bd97b2", - "wires": [ - [ - "30082dde.5085da", - "a603f43.0659d88", - "ed057305.d13bc" - ] - ] - }, { "id": "30082dde.5085da", "type": "success", @@ -815,7 +797,7 @@ "id": "51dd454b.e64094", "type": "get-resource", "name": "get-resource dst tp", - "xml": "\n \n \n\n\n", + "xml": "\n \n \n\n\n", "comments": "", "outputs": 1, "x": 2313.5001220703125, @@ -2038,5 +2020,45 @@ "66a31e69.f659b8" ] ] + }, + { + "id": "a736e107.ab857", + "type": "get-resource", + "name": "get-resource src tp", + "xml": "\n \n \n\n\n", + "comments": "", + "outputs": 1, + "x": 2359.5001220703125, + "y": 529, + "z": "5b68e0d.bd97b2", + "wires": [ + [ + "30082dde.5085da", + "a603f43.0659d88", + "ed057305.d13bc" + ] + ] + }, + { + "id": "85e1ebfe.ba8e78", + "type": "comment", + "name": "among all ttps, find the one that has relationship to p-interface (TODO: check node/pnf is the same between this p-interface's pnf and the ttp's pnf)", + "info": "", + "comments": "", + "x": 5703, + "y": 377, + "z": "5b68e0d.bd97b2", + "wires": [] + }, + { + "id": "1ff536a0.bad579", + "type": "comment", + "name": "among all ttps, find the one that has relationship to p-interface (TODO: check node/pnf is the same between this p-interface's pnf and the ttp's pnf)", + "info": "", + "comments": "", + "x": 5697, + "y": 749, + "z": "5b68e0d.bd97b2", + "wires": [] } ] \ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json index 6005d810..48817a42 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json @@ -84,8 +84,7 @@ "5733466d.dcbb88", "6d51d616.88647", "aab160b4.f76088", - "48dc3a93.b23a44", - "672fc75a.1e91b" + "48dc3a93.b23a44" ] ] }, @@ -588,7 +587,7 @@ "id": "e85654b4.901fd", "type": "execute", "name": "execute split tp-id to get pnf-name", - "xml": "\n\n\n\n\n\n\n\n", + "xml": "\n\n\n\n\n", "comments": "", "outputs": 1, "x": 2596, @@ -636,8 +635,8 @@ { "id": "9111f685.17b2e8", "type": "set", - "name": "set ipAddress prefixLength", - "xml": "\n\n", + "name": "set ltpId", + "xml": "\n\n", "comments": "", "x": 3041, "y": 673, @@ -1137,7 +1136,10 @@ "f7756434.d014e", "a9643f3f.4f04b", "ae925256.a68df", - "ee991e0.ab6b36" + "ee991e0.ab6b36", + "3ce3b19a.7c10c6", + "d661efba.3fa238", + "c6d53bc.53f5bc8" ] ] }, @@ -1194,8 +1196,8 @@ { "id": "678c3911.078e2", "type": "execute", - "name": "execute RestconfApiCallNode Create ethernet Service with token", - "xml": "\n\n\n\n\n\n\n\n\n\n\n\n", + "name": "execute RestApiCallNode Create ethernet Service with token", + "xml": "\n\n\n\n\n\n\n\n\n\n\n\n\n", "comments": "", "outputs": 1, "x": 1660.52734375, @@ -1301,8 +1303,8 @@ { "id": "42cb8b06.e7daec", "type": "execute", - "name": "execute RestconfApiCallNode Create ethernet Service without token", - "xml": "\n\n\n\n\n\n\n\n\n\n\n", + "name": "execute RestApiCallNode Create ethernet Service without token", + "xml": "\n\n\n\n\n\n\n\n\n\n\n\n", "comments": "", "outputs": 1, "x": 1670.52734375, diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-get-otn-tunnel-path-from-oof.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-get-otn-tunnel-path-from-oof.xml index 3ea459a5..8bf518e2 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-get-otn-tunnel-path-from-oof.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-get-otn-tunnel-path-from-oof.xml @@ -154,7 +154,7 @@ - + diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml index 7a4eedf3..d8e111c0 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml @@ -1,65 +1,63 @@ - - + + - - - - - - + + + + + + - + - + - + - + - - - + + + - - - - - - + + + + + + - - - - - + + + + + - + - + - + - + - - + + - + @@ -68,89 +66,78 @@ - + - + - - - + + + - - + + - - + + - - - - - - - - - + + + + + - - + - - - - + + + + - - + + - + - - + + - + - - - + + + - + - + - + - - + + - - - - - + + + + + @@ -168,131 +155,208 @@ - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + - + - - + + - - - + + + - + - - - - - + + + + + - - - - - + + + + + - - + + - - - - - - - + + + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + diff --git a/platform-logic/restapi-templates/src/main/json/sotn-ethernet-service.json b/platform-logic/restapi-templates/src/main/json/sotn-ethernet-service.json index 582e88e3..6fdb4e10 100644 --- a/platform-logic/restapi-templates/src/main/json/sotn-ethernet-service.json +++ b/platform-logic/restapi-templates/src/main/json/sotn-ethernet-service.json @@ -1,42 +1,64 @@ { "ietf-eth-tran-service:etht-svc": { - "globals": { - "etht-svc-bandwidth-profiles": [ - { - "bandwidth-profile-name": ${prop.global.sotn.bandwidth-profile-name}, - "bandwidth-profile-type": "ietf-eth-tran-types:mef-10-bwp", - "CIR": ${prop.global.sotn.cir}, - "EIR": ${prop.global.sotn.eir}, - "color-aware": ${prop.global.sotn.colorAware}, - "coupling-flag": ${prop.global.sotn.couplingFlag} - } - ] - }, "etht-svc-instances": [ { "etht-svc-name": ${prop.global.sotn.etht-svc-name}, - "access-provider-id": ${oof.vpn.access-provider-id}, - "access-client-id": ${oof.vpn.access-client-id}, - "access-topology-id": ${oof.vpn.access-topology-id}, + "te-topology-identifier":{ + "provider-id":${oof.vpn.access-provider-id}, + "client-id":${oof.vpn.access-client-id}, + "topology-id":${oof.vpn.access-topology-id} + }, "etht-svc-type": "ietf-eth-tran-types:p2p-svc", + "underlay":{ + "pw":{ + "pw-name":"pwName", + "pw-id":"123", + "pw-paths":[ + { + "path-id":"123", + "tp-tunnels":[ + { + "name":"tptunnel-22" + } + ] + } + ] + } + }, + "resilience":{ + "protection":{ + "enable":"true", + "hold-off-time":"0", + "protection-reversion-disable":"true", + "protection-type":"ietf-te-types:lsp-protection-unprotected", + "wait-to-revert":"0" + } + }, "admin-status": "ietf-te-types:tunnel-state-up", - "etht-svc-access-ports": [ - { - "access-port-id": "0", - "access-node-id": ${oof.vpn.access-node-id}, - "access-ltp-id": ${oof.vpn.src-access-ltp-id}, - "service-classification-type": "ietf-eth-tran-types:port-classification", - "ingress-egress-bandwidth-profile-name": ${prop.global.sotn.bandwidth-profile-name} - }, + "etht-svc-end-points":[ { - "access-port-id": "1", - "access-node-id": ${oof.vpn.access-node-id}, - "access-ltp-id": ${oof.vpn.dst-access-ltp-id}, - "service-classification-type": "ietf-eth-tran-types:port-classification", - "ingress-egress-bandwidth-profile-name": ${prop.global.sotn.bandwidth-profile-name} + "etht-svc-end-point-name":"source-point-name", + "etht-svc-access-points":[ + { + "access-point-id":"0", + "access-node-id":${oof.vpn.access-node-id}, + "access-ltp-id":${oof.vpn.src-access-ltp-id} + }, + { + "access-point-id":"1", + "access-node-id":${oof.vpn.access-node-id}, + "access-ltp-id":${oof.vpn.dst-access-ltp-id} + } + ], + "outer-tag":{ + "tag-type":"ietf-eth-tran-types:classify-c-vlan", + "vlan-value":1 + }, + "service-classification-type":"ietf-eth-tran-types:vlan-classification", + "ingress-egress-bandwidth-profile":${prop.global.sotn.bandwidth-profile-name} } ] } ] } -} \ No newline at end of file +} diff --git a/platform-logic/restapi-templates/src/main/json/sotn-otn-tunnel-service.json b/platform-logic/restapi-templates/src/main/json/sotn-otn-tunnel-service.json index 085d4944..38869639 100644 --- a/platform-logic/restapi-templates/src/main/json/sotn-otn-tunnel-service.json +++ b/platform-logic/restapi-templates/src/main/json/sotn-otn-tunnel-service.json @@ -3,34 +3,54 @@ "tunnels":{ "tunnel":[ { - "destination": ${oof.vpn.access-node-id}, - "source": ${otn-domain.node-id}, - "src-ttp-id": ${otn-domain.ttp-id}, - "ietf-otn-tunnel:src-tpn": ${otn-domain.tpn}, - "name": "otntunnel-22", - "te-topology-identifier": { - "client-id": ${otn-domain.client-id}, - "provider-id": ${otn-domain.provider-id}, - "topology-id": ${otn-domain.te-topo-id} - } + "destination": ${ietf-te_te.tunnels.tunnel[0].destination}, + "source": ${ietf-te_te.tunnels.tunnel[0].source}, + "src-ttp-id": ${ietf-te_te.tunnels.tunnel[0].src-ttp-id}, + "dst-ttp-id": ${ietf-te_te.tunnels.tunnel[0].dst-ttp-id}, + "ietf-otn-tunnel:src-tpn": ${ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_src-tpn}, + "ietf-otn-tunnel:dst-tpn": ${ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn}, + "te-bandwidth": { + "ietf-otn-tunnel:odu-type": "ietf-otn-types:prot-ODUFlex-gfp" }, + "encoding": "ietf-te-types:lsp-encoding-oduk", + "name": ${ietf-te_te.tunnels.tunnel[0].name}, + "restoration": { + "enable": "false", + "hold-off-time": "0", + "restoration-reversion-disable": "true", + "restoration-type": "ietf-te-types:lsp-restoration-restore-any", + "wait-to-revert": "0" + }, + "switching-type": "ietf-te-types:switching-otn", + "provisioning-state": "ietf-te-types:tunnel-state-down", + "te-topology-identifier": { + "client-id": ${ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id}, + "provider-id": ${ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id}, + "topology-id": ${ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id} + } + }, { - "destination": ${oof.vpn.access-node-id}, - "source": ${otn-domain.node-id}, - "src-ttp-id": ${otn-domain.ttp-id}, - "ietf-otn-tunnel:src-tpn": ${otn-domain.tpn}, - "name": "tptunnel-22", - "dependency-tunnels": { - "dependency-tunnel": [ - "name": "tptunnel-22" - ] - }, - "te-topology-identifier": { - "client-id": ${otn-domain.client-id}, - "provider-id": ${otn-domain.provider-id}, - "topology-id": ${otn-domain.te-topo-id} - } - } + "destination": ${ietf-te_te.tunnels.tunnel[1].destination}, + "source": ${ietf-te_te.tunnels.tunnel[1].source}, + "encoding": "ietf-te-types:lsp-encoding-packet", + "name": ${ietf-te_te.tunnels.tunnel[1].name}, + "dependency-tunnels": { + "dependency-tunnel": [ + { + "name": ${ietf-te_te.tunnels.tunnel[0].name}, + "encoding": "ietf-te-types:lsp-encoding-oduk", + "switching-type": "ietf-te-types:switching-otn" + } + ] + }, + "switching-type": "ietf-te-types:switching-psc1", + "te-topology-identifier": { + "client-id": ${ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id}, + "provider-id": ${ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id}, + "topology-id": ${ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id} + }, + "provisioning-state": "ietf-te-types:tunnel-state-down" + } ] } } -- cgit 1.2.3-korg