Update Beryllium tutorial documentation resources 67/34767/1
authorLorand Jakab <lojakab@cisco.com>
Tue, 16 Feb 2016 16:52:45 +0000 (18:52 +0200)
committerLorand Jakab <lojakab@cisco.com>
Tue, 16 Feb 2016 16:52:45 +0000 (18:52 +0200)
Change-Id: I1e398cbb1a1b4ad4751ab50e4bd2e396044b485e
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
resources/tutorial/Beryllium_Tutorial.json.postman_collection
resources/tutorial/add-key.json [new file with mode: 0644]
resources/tutorial/elp.json [new file with mode: 0644]
resources/tutorial/get1.json [new file with mode: 0644]
resources/tutorial/get2.json [new file with mode: 0644]
resources/tutorial/mapping.json [new file with mode: 0644]

index 839cb8e0a5e57be78fadc26a19e0fcbcad39955f..3932c4ed170baf4a9217cd6bdd0731d9a52fe6db 100644 (file)
@@ -1,76 +1,66 @@
 {
-       "id": "8dd7e353-86af-f7bc-ffd5-6fad90b89dc9",
+       "id": "2cf44cfb-4238-47a2-a5d3-69962cdcb9f8",
        "name": "Beryllium Tutorial",
        "description": "",
        "order": [
-               "b01b36a4-82eb-9202-6ce0-306b2deedd96",
-               "afd7765f-0732-e40d-8d90-729d5468d438",
-               "88d24ae3-652e-225e-943a-96600607aa61",
-               "5139ab07-7d5a-a7b9-c9fa-53907f71bf8b",
-               "9d7d12b3-263e-67c9-98e3-e017bdf1c134",
-               "3b46babd-fb84-5e17-fd14-507a360c974c",
-               "aeb3050c-a338-7373-3a51-54910c59bb82"
+               "2c468f3c-fff6-3580-8034-65dd30a44c19",
+               "4f9e0128-9f80-de24-f422-46eb63bbc70f",
+               "4db58898-56b1-486b-f7d3-3cff82240044",
+               "41acc6ab-a8bd-9442-0ec8-211ecd5e8d1c",
+               "f36fe560-af02-0056-d919-f3a89ab3a1ed",
+               "59b90843-0047-9395-7cec-1acb3ecab894",
+               "e6ce75de-55ac-a9f0-28b6-b9c26bc65493"
        ],
        "folders": [],
        "timestamp": 1434555933740,
-       "synced": false,
        "owner": 0,
-       "sharedWithTeam": false,
-       "subscribed": false,
-       "remoteLink": "",
        "public": false,
-       "write": true,
+       "hasRequests": true,
        "requests": [
                {
-                       "id": "3b46babd-fb84-5e17-fd14-507a360c974c",
+                       "id": "2c468f3c-fff6-3580-8034-65dd30a44c19",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
-                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/mappingservice:get-mapping",
-                       "pathVariables": {},
+                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/odl-mappingservice:add-key",
                        "preRequestScript": "",
+                       "pathVariables": {},
                        "method": "POST",
-                       "collectionId": "8dd7e353-86af-f7bc-ffd5-6fad90b89dc9",
                        "data": [],
                        "dataMode": "raw",
-                       "name": "06. Get mapping for 2.2.2.2/32",
-                       "description": "",
-                       "descriptionFormat": "html",
-                       "time": 1434556706822,
                        "version": 2,
-                       "responses": [],
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "collectionOwner": 0,
-                       "synced": false,
-                       "rawModeData": "{\n    \"input\": {\n        \"LispAddressContainer\": {\n            \"Ipv4Address\": {\n                \"afi\": 1,\n                \"Ipv4Address\": \"2.2.2.2\"\n            }\n        },\n        \"mask-length\": 32\n   }\n}"
+                       "time": 1455639350036,
+                       "name": "01. Add key \"password\" for 1.1.1.1/32",
+                       "description": "",
+                       "collectionId": "2cf44cfb-4238-47a2-a5d3-69962cdcb9f8",
+                       "responses": [],
+                       "rawModeData": "{\n    \"input\": {\n        \"eid\": {\n            \"address-type\": \"ietf-lisp-address-types:ipv4-prefix-afi\",\n            \"ipv4-prefix\": \"1.1.1.1/32\"\n        },\n        \"mapping-authkey\": {\n            \"key-string\": \"password\",\n            \"key-type\": 1\n        }\n    }\n}"
                },
                {
-                       "id": "5139ab07-7d5a-a7b9-c9fa-53907f71bf8b",
+                       "id": "41acc6ab-a8bd-9442-0ec8-211ecd5e8d1c",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
-                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/mappingservice:get-mapping",
-                       "pathVariables": {},
+                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/odl-mappingservice:get-mapping",
                        "preRequestScript": "",
+                       "pathVariables": {},
                        "method": "POST",
-                       "collectionId": "8dd7e353-86af-f7bc-ffd5-6fad90b89dc9",
                        "data": [],
                        "dataMode": "raw",
-                       "name": "04. Get mapping for 2.2.2.2/32",
-                       "description": "",
-                       "descriptionFormat": "html",
-                       "time": 1434556397368,
                        "version": 2,
-                       "responses": [],
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "collectionOwner": 0,
-                       "synced": false,
-                       "rawModeData": "{\n    \"input\": {\n        \"LispAddressContainer\": {\n            \"Ipv4Address\": {\n                \"afi\": 1,\n                \"Ipv4Address\": \"2.2.2.2\"\n            }\n        },\n        \"mask-length\": 32\n   }\n}"
+                       "time": 1455640804788,
+                       "name": "04. Get mapping for 2.2.2.2/32",
+                       "description": "",
+                       "collectionId": "2cf44cfb-4238-47a2-a5d3-69962cdcb9f8",
+                       "responses": [],
+                       "rawModeData": "{\n    \"input\": {\n        \"eid\": {\n            \"address-type\": \"ietf-lisp-address-types:ipv4-prefix-afi\",\n            \"ipv4-prefix\": \"2.2.2.2/32\"\n        }\n    }\n}"
                },
                {
-                       "id": "88d24ae3-652e-225e-943a-96600607aa61",
+                       "id": "4db58898-56b1-486b-f7d3-3cff82240044",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
-                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/mappingservice:add-mapping",
+                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/odl-mappingservice:add-mapping",
                        "preRequestScript": "",
                        "pathVariables": {},
                        "method": "POST",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1434990563067,
+                       "time": 1455640797118,
                        "name": "03. Add mapping 2.2.2.2/32 (prio server1)",
                        "description": "",
-                       "collectionId": "8dd7e353-86af-f7bc-ffd5-6fad90b89dc9",
+                       "collectionId": "2cf44cfb-4238-47a2-a5d3-69962cdcb9f8",
                        "responses": [],
-                       "synced": false,
-                       "rawModeData": "{\n    \"input\": {\n        \"recordTtl\": 1440,\n        \"maskLength\": 32,\n        \"authoritative\": true,\n        \"LispAddressContainer\": {\n            \"Ipv4Address\": {\n                \"afi\": 1,\n                \"Ipv4Address\": \"2.2.2.2\"\n            }\n        },\n        \"LocatorRecord\": [\n            {\n                \"name\": \"server1\",\n                \"priority\": 1,\n                \"weight\": 1,\n                \"multicastPriority\": 255,\n                \"multicastWeight\": 0,\n                \"localLocator\": true,\n                \"rlocProbed\": false,\n                \"routed\": false,\n                \"LispAddressContainer\": {\n                    \"Ipv4Address\": {\n                        \"afi\": 1,\n                        \"Ipv4Address\": \"192.168.16.31\"\n                    }\n                }\n            },\n            {\n                \"name\": \"server2\",\n                \"priority\": 2,\n                \"weight\": 1,\n                \"multicastPriority\": 255,\n                \"multicastWeight\": 0,\n                \"localLocator\": true,\n                \"rlocProbed\": false,\n                \"routed\": false,\n                \"LispAddressContainer\": {\n                    \"Ipv4Address\": {\n                        \"afi\": 1,\n                        \"Ipv4Address\": \"192.168.16.32\"\n                    }\n                }\n            }\n        ]\n    }\n}"
+                       "rawModeData": "{\n    \"input\": {\n        \"mapping-record\": {\n            \"recordTtl\": 1440,\n            \"action\": \"NoAction\",\n            \"authoritative\": true,\n            \"eid\": {\n                \"address-type\": \"ietf-lisp-address-types:ipv4-prefix-afi\",\n                \"ipv4-prefix\": \"2.2.2.2/32\"\n            },\n            \"LocatorRecord\": [\n                {\n                    \"locator-id\": \"server1\",\n                    \"priority\": 1,\n                    \"weight\": 1,\n                    \"multicastPriority\": 255,\n                    \"multicastWeight\": 0,\n                    \"localLocator\": true,\n                    \"rlocProbed\": false,\n                    \"routed\": true,\n                    \"rloc\": {\n                        \"address-type\": \"ietf-lisp-address-types:ipv4-afi\",\n                        \"ipv4\": \"192.168.16.31\"\n                    }\n                },\n                {\n                    \"locator-id\": \"server2\",\n                    \"priority\": 2,\n                    \"weight\": 1,\n                    \"multicastPriority\": 255,\n                    \"multicastWeight\": 0,\n                    \"localLocator\": true,\n                    \"rlocProbed\": false,\n                    \"routed\": true,\n                    \"rloc\": {\n                        \"address-type\": \"ietf-lisp-address-types:ipv4-afi\",\n                        \"ipv4\": \"192.168.16.32\"\n                    }\n                }\n            ]\n        }\n    }\n}"
                },
                {
-                       "id": "9d7d12b3-263e-67c9-98e3-e017bdf1c134",
+                       "id": "4f9e0128-9f80-de24-f422-46eb63bbc70f",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
-                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/mappingservice:add-mapping",
+                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/odl-mappingservice:get-mapping",
                        "preRequestScript": "",
                        "pathVariables": {},
                        "method": "POST",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1435148056586,
-                       "name": "05. Add mapping 2.2.2.2/32 (prio server2)",
+                       "time": 1455639363796,
+                       "name": "02. Get mapping for 1.1.1.1/32",
                        "description": "",
-                       "collectionId": "8dd7e353-86af-f7bc-ffd5-6fad90b89dc9",
+                       "collectionId": "2cf44cfb-4238-47a2-a5d3-69962cdcb9f8",
                        "responses": [],
-                       "synced": false,
-                       "rawModeData": "{\n    \"input\": {\n        \"recordTtl\": 1440,\n        \"maskLength\": 32,\n        \"authoritative\": true,\n        \"LispAddressContainer\": {\n            \"Ipv4Address\": {\n                \"afi\": 1,\n                \"Ipv4Address\": \"2.2.2.2\"\n            }\n        },\n        \"LocatorRecord\": [\n            {\n                \"name\": \"server1\",\n                \"priority\": 2,\n                \"weight\": 1,\n                \"multicastPriority\": 255,\n                \"multicastWeight\": 0,\n                \"localLocator\": true,\n                \"rlocProbed\": false,\n                \"routed\": false,\n                \"LispAddressContainer\": {\n                    \"Ipv4Address\": {\n                        \"afi\": 1,\n                        \"Ipv4Address\": \"192.168.16.31\"\n                    }\n                }\n            },\n            {\n                \"name\": \"server2\",\n                \"priority\": 1,\n                \"weight\": 1,\n                \"multicastPriority\": 255,\n                \"multicastWeight\": 0,\n                \"localLocator\": true,\n                \"rlocProbed\": false,\n                \"routed\": false,\n                \"LispAddressContainer\": {\n                    \"Ipv4Address\": {\n                        \"afi\": 1,\n                        \"Ipv4Address\": \"192.168.16.32\"\n                    }\n                }\n            }\n        ]\n    }\n}"
+                       "rawModeData": "{\n    \"input\": {\n        \"eid\": {\n            \"address-type\": \"ietf-lisp-address-types:ipv4-prefix-afi\",\n            \"ipv4-prefix\": \"1.1.1.1/32\"\n        }\n    }\n}"
                },
                {
-                       "id": "aeb3050c-a338-7373-3a51-54910c59bb82",
+                       "id": "59b90843-0047-9395-7cec-1acb3ecab894",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
-                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/mappingservice:add-mapping",
+                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/odl-mappingservice:get-mapping",
                        "preRequestScript": "",
                        "pathVariables": {},
                        "method": "POST",
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "time": 1435249093955,
-                       "name": "07. Add mapping 2.2.2.2/32 (ELP to server1)",
+                       "time": 1455640835441,
+                       "name": "06. Get mapping for 2.2.2.2/32",
                        "description": "",
-                       "collectionId": "8dd7e353-86af-f7bc-ffd5-6fad90b89dc9",
+                       "collectionId": "2cf44cfb-4238-47a2-a5d3-69962cdcb9f8",
                        "responses": [],
-                       "synced": false,
-                       "rawModeData": "{\n    \"input\": {\n        \"recordTtl\": 1440,\n        \"maskLength\": 32,\n        \"authoritative\": true,\n        \"LispAddressContainer\": {\n            \"Ipv4Address\": {\n                \"afi\": 1,\n                \"Ipv4Address\": \"2.2.2.2\"\n            }\n        },\n        \"LocatorRecord\": [\n            {\n                \"name\": \"ELP\",\n                \"priority\": 1,\n                \"weight\": 1,\n                \"multicastPriority\": 255,\n                \"multicastWeight\": 0,\n                \"localLocator\": true,\n                \"rlocProbed\": false,\n                \"routed\": false,\n                \"LispAddressContainer\": {\n                    \"LcafTrafficEngineeringAddr\": {\n                        \"afi\": 16387,\n                        \"lcafType\": 10,\n                        \"Hops\": [\n                            {\n                                \"name\": \"service-node\",\n                                \"lookup\": false,\n                                \"RLOCProbe\": false,\n                                \"strict\": true,\n                                \"hop\": {\n                                    \"Ipv4Address\": {\n                                        \"afi\": 1,\n                                        \"Ipv4Address\": \"192.168.16.33\"\n                                    }\n                                }\n                            },\n                            {\n                                \"name\": \"server1\",\n                                \"lookup\": false,\n                                \"RLOCProbe\": false,\n                                \"strict\": true,\n                                \"hop\": {\n                                    \"Ipv4Address\": {\n                                        \"afi\": 1,\n                                        \"Ipv4Address\": \"192.168.16.31\"\n                                    }\n                                }\n                            }\n                        ]\n                    }\n                }\n            }\n        ]\n    }\n}"
+                       "rawModeData": "{\n    \"input\": {\n        \"eid\": {\n            \"address-type\": \"ietf-lisp-address-types:ipv4-prefix-afi\",\n            \"ipv4-prefix\": \"2.2.2.2/32\"\n        }\n    }\n}"
                },
                {
-                       "id": "afd7765f-0732-e40d-8d90-729d5468d438",
+                       "id": "e6ce75de-55ac-a9f0-28b6-b9c26bc65493",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
-                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/mappingservice:get-mapping",
-                       "pathVariables": {},
+                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/odl-mappingservice:add-mapping",
                        "preRequestScript": "",
+                       "pathVariables": {},
                        "method": "POST",
-                       "collectionId": "8dd7e353-86af-f7bc-ffd5-6fad90b89dc9",
                        "data": [],
                        "dataMode": "raw",
-                       "name": "02. Get mapping for 1.1.1.1/32",
-                       "description": "",
-                       "descriptionFormat": "html",
-                       "time": 1434556112021,
                        "version": 2,
-                       "responses": [],
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "collectionOwner": 0,
-                       "synced": false,
-                       "rawModeData": "{\n    \"input\": {\n        \"LispAddressContainer\": {\n            \"Ipv4Address\": {\n                \"afi\": 1,\n                \"Ipv4Address\": \"1.1.1.1\"\n            }\n        },\n        \"mask-length\": 32\n   }\n}"
+                       "time": 1455641206973,
+                       "name": "07. Add mapping 2.2.2.2/32 (ELP to server1)",
+                       "description": "",
+                       "collectionId": "2cf44cfb-4238-47a2-a5d3-69962cdcb9f8",
+                       "responses": [],
+                       "rawModeData": "{\n    \"input\": {\n        \"mapping-record\": {\n            \"recordTtl\": 1440,\n            \"action\": \"NoAction\",\n            \"authoritative\": true,\n            \"eid\": {\n                \"address-type\": \"ietf-lisp-address-types:ipv4-prefix-afi\",\n                \"ipv4-prefix\": \"2.2.2.2/32\"\n            },\n            \"LocatorRecord\": [\n                {\n                    \"locator-id\": \"ELP\",\n                    \"priority\": 1,\n                    \"weight\": 1,\n                    \"multicastPriority\": 255,\n                    \"multicastWeight\": 0,\n                    \"localLocator\": true,\n                    \"rlocProbed\": false,\n                    \"routed\": true,\n                    \"rloc\": {\n                        \"address-type\": \"ietf-lisp-address-types:explicit-locator-path-lcaf\",\n                        \"explicit-locator-path\": {\n                            \"hop\": [\n                                {\n                                    \"hop-id\": \"service-node\",\n                                    \"address\": \"192.168.16.33\",\n                                    \"lrs-bits\": \"strict\"\n                                },\n                                {\n                                    \"hop-id\": \"server1\",\n                                    \"address\": \"192.168.16.31\",\n                                    \"lrs-bits\": \"strict\"\n                                }\n                            ]\n                        }\n                    }\n                }\n            ]\n        }\n    }\n}"
                },
                {
-                       "id": "b01b36a4-82eb-9202-6ce0-306b2deedd96",
+                       "id": "f36fe560-af02-0056-d919-f3a89ab3a1ed",
                        "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
-                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/mappingservice:add-key",
-                       "pathVariables": {},
+                       "url": "http://{{controllerHost}}:{{restconfPort}}/restconf/operations/odl-mappingservice:add-mapping",
                        "preRequestScript": "",
+                       "pathVariables": {},
                        "method": "POST",
-                       "collectionId": "8dd7e353-86af-f7bc-ffd5-6fad90b89dc9",
                        "data": [],
                        "dataMode": "raw",
-                       "name": "01. Add key \"password\" for 1.1.1.1/32",
-                       "description": "",
-                       "descriptionFormat": "html",
-                       "time": 1434556073960,
                        "version": 2,
-                       "responses": [],
                        "tests": "",
                        "currentHelper": "normal",
                        "helperAttributes": {},
-                       "collectionOwner": 0,
-                       "synced": false,
-                       "rawModeData": "{\n    \"input\": {\n        \"LispAddressContainer\": {\n            \"Ipv4Address\": {\n                \"afi\": 1,\n                \"Ipv4Address\": \"1.1.1.1\"\n            }\n        },\n        \"mask-length\": 32,\n        \"key-type\": 1,\n        \"authkey\": \"password\"\n   }\n}"
+                       "time": 1455640880469,
+                       "name": "05. Add mapping 2.2.2.2/32 (prio server2)",
+                       "description": "",
+                       "collectionId": "2cf44cfb-4238-47a2-a5d3-69962cdcb9f8",
+                       "responses": [],
+                       "rawModeData": "{\n    \"input\": {\n        \"mapping-record\": {\n            \"recordTtl\": 1440,\n            \"action\": \"NoAction\",\n            \"authoritative\": true,\n            \"eid\": {\n                \"address-type\": \"ietf-lisp-address-types:ipv4-prefix-afi\",\n                \"ipv4-prefix\": \"2.2.2.2/32\"\n            },\n            \"LocatorRecord\": [\n                {\n                    \"locator-id\": \"server1\",\n                    \"priority\": 2,\n                    \"weight\": 1,\n                    \"multicastPriority\": 255,\n                    \"multicastWeight\": 0,\n                    \"localLocator\": true,\n                    \"rlocProbed\": false,\n                    \"routed\": true,\n                    \"rloc\": {\n                        \"address-type\": \"ietf-lisp-address-types:ipv4-afi\",\n                        \"ipv4\": \"192.168.16.31\"\n                    }\n                },\n                {\n                    \"locator-id\": \"server2\",\n                    \"priority\": 1,\n                    \"weight\": 1,\n                    \"multicastPriority\": 255,\n                    \"multicastWeight\": 0,\n                    \"localLocator\": true,\n                    \"rlocProbed\": false,\n                    \"routed\": true,\n                    \"rloc\": {\n                        \"address-type\": \"ietf-lisp-address-types:ipv4-afi\",\n                        \"ipv4\": \"192.168.16.32\"\n                    }\n                }\n            ]\n        }\n    }\n}"
                }
        ]
-}
+}
\ No newline at end of file
diff --git a/resources/tutorial/add-key.json b/resources/tutorial/add-key.json
new file mode 100644 (file)
index 0000000..367f8f1
--- /dev/null
@@ -0,0 +1,12 @@
+{
+    "input": {
+        "eid": {
+            "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
+            "ipv4-prefix": "1.1.1.1/32"
+        },
+        "mapping-authkey": {
+            "key-string": "password",
+            "key-type": 1
+        }
+    }
+}
diff --git a/resources/tutorial/elp.json b/resources/tutorial/elp.json
new file mode 100644 (file)
index 0000000..9e727ee
--- /dev/null
@@ -0,0 +1,42 @@
+{
+    "input": {
+        "mapping-record": {
+            "recordTtl": 1440,
+            "action": "NoAction",
+            "authoritative": true,
+            "eid": {
+                "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
+                "ipv4-prefix": "2.2.2.2/32"
+            },
+            "LocatorRecord": [
+                {
+                    "locator-id": "ELP",
+                    "priority": 1,
+                    "weight": 1,
+                    "multicastPriority": 255,
+                    "multicastWeight": 0,
+                    "localLocator": true,
+                    "rlocProbed": false,
+                    "routed": true,
+                    "rloc": {
+                        "address-type": "ietf-lisp-address-types:explicit-locator-path-lcaf",
+                        "explicit-locator-path": {
+                            "hop": [
+                                {
+                                    "hop-id": "service-node",
+                                    "address": "192.168.16.33",
+                                    "lrs-bits": "strict"
+                                },
+                                {
+                                    "hop-id": "server1",
+                                    "address": "192.168.16.31",
+                                    "lrs-bits": "strict"
+                                }
+                            ]
+                        }
+                    }
+                }
+            ]
+        }
+    }
+}
diff --git a/resources/tutorial/get1.json b/resources/tutorial/get1.json
new file mode 100644 (file)
index 0000000..86197a5
--- /dev/null
@@ -0,0 +1,8 @@
+{
+    "input": {
+        "eid": {
+            "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
+            "ipv4-prefix": "1.1.1.1/32"
+        }
+    }
+}
diff --git a/resources/tutorial/get2.json b/resources/tutorial/get2.json
new file mode 100644 (file)
index 0000000..392112e
--- /dev/null
@@ -0,0 +1,8 @@
+{
+    "input": {
+        "eid": {
+            "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
+            "ipv4-prefix": "2.2.2.2/32"
+        }
+    }
+}
diff --git a/resources/tutorial/mapping.json b/resources/tutorial/mapping.json
new file mode 100644 (file)
index 0000000..62576dc
--- /dev/null
@@ -0,0 +1,43 @@
+{
+    "input": {
+        "mapping-record": {
+            "recordTtl": 1440,
+            "action": "NoAction",
+            "authoritative": true,
+            "eid": {
+                "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
+                "ipv4-prefix": "2.2.2.2/32"
+            },
+            "LocatorRecord": [
+                {
+                    "locator-id": "server1",
+                    "priority": 1,
+                    "weight": 1,
+                    "multicastPriority": 255,
+                    "multicastWeight": 0,
+                    "localLocator": true,
+                    "rlocProbed": false,
+                    "routed": true,
+                    "rloc": {
+                        "address-type": "ietf-lisp-address-types:ipv4-afi",
+                        "ipv4": "192.168.16.31"
+                    }
+                },
+                {
+                    "locator-id": "server2",
+                    "priority": 2,
+                    "weight": 1,
+                    "multicastPriority": 255,
+                    "multicastWeight": 0,
+                    "localLocator": true,
+                    "rlocProbed": false,
+                    "routed": true,
+                    "rloc": {
+                        "address-type": "ietf-lisp-address-types:ipv4-afi",
+                        "ipv4": "192.168.16.32"
+                    }
+                }
+            ]
+        }
+    }
+}