Create Physical Port By Listening on DS changes
authorPeng Zhang <pzhang@ctbri.com.cn>
Thu, 26 Nov 2015 14:14:22 +0000 (22:14 +0800)
committerPeng Zhang <pzhang@ctbri.com.cn>
Thu, 3 Dec 2015 12:33:43 +0000 (20:33 +0800)
PatchSet 2&3:
share code and change it according comments

PatchSet 4:
rebase on 'Create Physical Switch'

PathchSet 5:
1.rebase on 'Yang changes and cleanup'
2.finish creating physical port
3.rewrite HwvtepOperationalState

PatchSet 6:
change code according comments

PatchSet 7:
rebase on master branch

PathchSet 8:
fix a nullpoint bug

Change-Id: I425336aea3b055ee4d7e75bd26490e194340e3af
Signed-off-by: Peng Zhang <pzhang@ctbri.com.cn>
resources/commons/Ovsdb-HwvtepSouthbound-Collection.json.postman_collection

index 262ec0f108e7baef66ea5da9f0f76636957144cd..9a08d17937632a20d9f62f897e492f342160fedf 100755 (executable)
         "e25f67e4-3a3f-5da7-f7c8-41b371156719",
         "f7d33d50-7c8e-69e2-6d60-5c6155c5d210",
         "233b5ab5-8177-4416-6912-2477520a0654",
+        "567d7827-628d-07a4-3b95-5a208a244c43",
+        "f906c48b-ba3c-a3da-36e8-34c453538e2e",
+        "5d0c4d49-44f7-4165-ca5f-00cf2a9fca8b",
+        "34167a78-7de4-91a9-ef40-7592b28ead5c",
         "9bc22ca7-049c-af51-7c12-6bf71044b2ec",
         "f6d300f7-380a-d090-0d4a-2b2ddefe5104",
         "f9f71d74-a49d-b190-d929-b6772ce0ba73",
@@ -21,7 +25,8 @@
         "c8e8f3fd-3bfb-aafa-e3ec-a671a942f426",
         "d362ddc4-1c5f-67d5-e354-c2a8d2ba9d79",
         "538c71b3-e3e6-f01b-cc4c-d2b686686aa8",
-        "a13e6877-997e-84e1-c8e8-e83ef5e9a002"
+        "a13e6877-997e-84e1-c8e8-e83ef5e9a002",
+        "3c86ab7c-a7ee-6b71-3ec1-da7d20f97d1a"
     ],
     "owner":0,
     "sharedWithTeam":false,
             "preRequestScript": "",
             "tests": "",
             "rawModeData": ""
+        },
+        {
+            "collectionId": "19f6b1a8-4d54-62f8-6bd6-f52e0b6e40b8",
+            "id": "567d7827-628d-07a4-3b95-5a208a244c43",
+            "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%2Fphysicalswitch%2Fbr0",
+            "preRequestScript": "",
+            "pathVariables": {},
+            "method": "POST",
+            "data": [],
+            "dataMode": "raw",
+            "version": 2,
+            "tests": "",
+            "currentHelper": "normal",
+            "helperAttributes": {},
+            "time": 1448641495086,
+            "name": "Create Specific Config Physical Port",
+            "description": "",
+            "rawModeData": "{\n  \"network-topology:termination-point\": [\n        {\n            \"tp-id\": \"port0\",\n          \t\"hwvtep-node-name\": \"port0\",\n            \"hwvtep-node-description\": \"\",\n            \"vlan-bindings\": [\n          \t\t{\n                  \"vlan-id-key\": \"100\",\n                  \"logical-switch-ref\": \"ls0\"\n            \t}\n          \t]\n\t\t}\n    ]\n}"
+        },
+        {
+            "collectionId": "19f6b1a8-4d54-62f8-6bd6-f52e0b6e40b8",
+            "id": "f906c48b-ba3c-a3da-36e8-34c453538e2e",
+            "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%2Fphysicalswitch%2Fbr0/termination-point/port0",
+            "preRequestScript": "",
+            "pathVariables": {},
+            "method": "PUT",
+            "data": [],
+            "dataMode": "raw",
+            "version": 2,
+            "tests": "",
+            "currentHelper": "normal",
+            "helperAttributes": {},
+            "time": 1448643757985,
+            "name": "Update Specific Config Physical Port",
+            "description": "",
+            "rawModeData": "{\n  \"network-topology:termination-point\": [\n        {\n            \"tp-id\": \"port0\",\n          \t\"hwvtep-node-name\": \"port0\",\n            \"hwvtep-node-description\": \"\",\n            \"vlan-bindings\": [\n          \t\t{\n                  \"vlan-id-key\": \"100\",\n                  \"logical-switch-ref\": \"ls0\"\n            \t}\n          \t]\n\t\t}\n    ]\n}"
+        },
+        {
+            "collectionId": "19f6b1a8-4d54-62f8-6bd6-f52e0b6e40b8",
+            "id": "5d0c4d49-44f7-4165-ca5f-00cf2a9fca8b",
+            "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%2Fphysicalswitch%2Fbr0/termination-point/port0",
+            "preRequestScript": "",
+            "pathVariables": {},
+            "method": "GET",
+            "data": [],
+            "dataMode": "params",
+            "version": 2,
+            "tests": "",
+            "currentHelper": "normal",
+            "helperAttributes": {},
+            "time": 1448643846609,
+            "name": "Get Specific Config Physical Port",
+            "description": ""
+        },
+        {
+            "collectionId": "19f6b1a8-4d54-62f8-6bd6-f52e0b6e40b8",
+            "id": "34167a78-7de4-91a9-ef40-7592b28ead5c",
+            "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%2Fphysicalswitch%2Fbr0/termination-point/port0",
+            "preRequestScript": "",
+            "pathVariables": {},
+            "method": "DELETE",
+            "data": [],
+            "dataMode": "raw",
+            "version": 2,
+            "tests": "",
+            "currentHelper": "normal",
+            "helperAttributes": {},
+            "time": 1448643860663,
+            "name": "Delete Specific Config Physical Port",
+            "description": "",
+            "rawModeData": ""
+        },
+        {
+            "collectionId": "19f6b1a8-4d54-62f8-6bd6-f52e0b6e40b8",
+            "id": "3c86ab7c-a7ee-6b71-3ec1-da7d20f97d1a",
+            "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+            "url": "http://{{controllerHost}}:8181/restconf/operational/network-topology:network-topology/topology/hwvtep:1/node/hwvtep:%2F%2F{{hwvtepNodeIp}}:6640%2Fphysicalswitch%2Fbr0/termination-point/port0",
+            "preRequestScript": "",
+            "pathVariables": {},
+            "method": "GET",
+            "data": [],
+            "dataMode": "params",
+            "version": 2,
+            "tests": "",
+            "currentHelper": "normal",
+            "helperAttributes": {},
+            "time": 1448718837283,
+            "name": "Get Specific Operational Physical Port",
+            "description": ""
         }
     ]
 }