From 16b6380bb1af95cc07384683552a02818397c030 Mon Sep 17 00:00:00 2001 From: Peng Zhang Date: Thu, 26 Nov 2015 18:47:22 +0800 Subject: [PATCH] Create Physical Switch by listening on DS PatchSet2: 1. fix update issue 2. update postman collection PatchSet3: 1. change according to review comment PatchSet4: 1. fix IP To String issue Change-Id: I16357d027bdcd8b03e2f0a0d2bedf57bd4a4864f Signed-off-by: Peng Zhang --- ...thbound-Collection.json.postman_collection | 97 ++++++++++++++++++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/resources/commons/Ovsdb-HwvtepSouthbound-Collection.json.postman_collection b/resources/commons/Ovsdb-HwvtepSouthbound-Collection.json.postman_collection index 45fd82f5f1..c9322318f5 100755 --- a/resources/commons/Ovsdb-HwvtepSouthbound-Collection.json.postman_collection +++ b/resources/commons/Ovsdb-HwvtepSouthbound-Collection.json.postman_collection @@ -9,6 +9,10 @@ "6e7c88e4-485d-ab9f-4c3a-cc235e022905", "92ee7422-5b08-6d63-2b95-961ec0e18ffa", "e92ac963-daaf-0899-c3e8-a00d897be0e2", + "88789ac9-9de9-bab3-565b-307774e49f4d", + "e25f67e4-3a3f-5da7-f7c8-41b371156719", + "f7d33d50-7c8e-69e2-6d60-5c6155c5d210", + "233b5ab5-8177-4416-6912-2477520a0654", "9bc22ca7-049c-af51-7c12-6bf71044b2ec", "f6d300f7-380a-d090-0d4a-2b2ddefe5104", "f9f71d74-a49d-b190-d929-b6772ce0ba73", @@ -16,7 +20,8 @@ "22354294-1d01-cebf-180c-d609747be9bc", "c8e8f3fd-3bfb-aafa-e3ec-a671a942f426", "d362ddc4-1c5f-67d5-e354-c2a8d2ba9d79", - "538c71b3-e3e6-f01b-cc4c-d2b686686aa8" + "538c71b3-e3e6-f01b-cc4c-d2b686686aa8", + "a13e6877-997e-84e1-c8e8-e83ef5e9a002" ], "owner":0, "sharedWithTeam":false, @@ -217,6 +222,96 @@ "timestamp":0, "version":2, "time":1447335408595 + }, + { + "collectionId": "19f6b1a8-4d54-62f8-6bd6-f52e0b6e40b8", + "id": "88789ac9-9de9-bab3-565b-307774e49f4d", + "name": "Create Specific Config Physical Switch", + "description": "Fire this Restconf request if you want to create a physical switch.", + "url": "http://{{controllerHost}}:8181/restconf/config/network-topology:network-topology/topology/hwvtep:1/", + "method": "POST", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "version": 2, + "time": 1447909152443, + "preRequestScript": "", + "tests": "", + "rawModeData": "{\n \"network-topology:node\": [\n {\n \"node-id\": \"hwvtep://{{hwvtepNodeIp}}:6640/physicalswitch/ps0\",\n \"hwvtep-node-name\": \"ps0\",\n \"hwvtep-node-description\": \"\",\n \"management-ips\": [\n {\n \"management-ips-key\": \"{{managementIp}}\"\n }\n ],\n \"tunnel-ips\": [\n {\n \"tunnel-ips-key\": \"{{tunnleIp}}\"\n }\n ],\n \"managed-by\": \"/network-topology:network-topology/network-topology:topology[network-topology:topology-id='hwvtep:1']/network-topology:node[network-topology:node-id='hwvtep://{{hwvtepNodeIp}}:6640']\" \n }\n ]\n}" + }, + { + "collectionId": "19f6b1a8-4d54-62f8-6bd6-f52e0b6e40b8", + "id": "e25f67e4-3a3f-5da7-f7c8-41b371156719", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://{{controllerHost}}:8181/restconf/config/network-topology:network-topology/topology/hwvtep:1/node/hwvtep:%2F%2F{{hwvtepNodeIp}}:6640%phsicalswitch%2Fps0", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1448552632013, + "name": "Update Specific Config Physical Switch", + "description": "Fire this Restconf request if you want to update a exsiting physical switch.", + "rawModeData": "{\n \"network-topology:node\": [\n {\n \"node-id\": \"hwvtep://{{hwvtepNodeIp}}:6640/physicalswitch/ps0\",\n \"hwvtep-node-name\": \"ps0\",\n \"hwvtep-node-description\": \"\",\n \"management-ips\": [\n {\n \"management-ips-key\": \"{{managementIp}}\"\n }\n ],\n \"tunnel-ips\": [\n {\n \"tunnel-ips-key\": \"{{tunnleIp}}\"\n }\n ],\n \"managed-by\": \"/network-topology:network-topology/network-topology:topology[network-topology:topology-id='hwvtep:1']/network-topology:node[network-topology:node-id='hwvtep://{{hwvtepNodeIp}}:6640']\" \n }\n ]\n}" + }, + { + "collectionId": "19f6b1a8-4d54-62f8-6bd6-f52e0b6e40b8", + "id": "f7d33d50-7c8e-69e2-6d60-5c6155c5d210", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://{{controllerHost}}:8181/restconf/config/network-topology:network-topology/topology/hwvtep:1/node/hwvtep:%2F%2F{{hwvtepNodeIp}}:6640%phsicalswitch%2Fps0", + "preRequestScript": "", + "pathVariables": {}, + "method": "GET", + "data": [], + "dataMode": "params", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1448548819543, + "name": "Get Specific Config Physical Switch", + "description": "Fire this Restconf request if you want to get a exsiting physical switch." + }, + { + "collectionId": "19f6b1a8-4d54-62f8-6bd6-f52e0b6e40b8", + "id": "233b5ab5-8177-4416-6912-2477520a0654", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://{{controllerHost}}:8181/restconf/config/network-topology:network-topology/topology/hwvtep:1/node/hwvtep:%2F%2F{{hwvtepNodeIp}}:6640%phsicalswitch%2Fps0", + "preRequestScript": "", + "pathVariables": {}, + "method": "DELETE", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1448552707318, + "name": "Delete Specific Config Physical Switch", + "description": "Fire this Restconf request if you want to delete a physical switch.", + "rawModeData": "" + }, + { + "collectionId": "19f6b1a8-4d54-62f8-6bd6-f52e0b6e40b8", + "id": "a13e6877-997e-84e1-c8e8-e83ef5e9a002", + "name": "Get Specific Operational Physical Switch", + "description": "", + "url": "http://{{controllerHost}}:8181/restconf/operational/network-topology:network-topology/topology/hwvtep:1/node/hwvtep:%2F%2F{{hwvtepNodeIp}}:6640%2Fphysicalswitch%2Fps0", + "method": "GET", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "responses": [], + "version": 2, + "preRequestScript": "", + "tests": "", + "rawModeData": "" } ] } -- 2.36.6