LISP: Add Service Path Datatype test 01/31801/3
authorLorand Jakab <lojakab@cisco.com>
Tue, 22 Dec 2015 23:16:09 +0000 (01:16 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 15 Jan 2016 16:23:14 +0000 (16:23 +0000)
Change-Id: I3a37ffda613594cccd9c683fbd254e261c52d8ae
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
csit/suites/lispflowmapping/msmr/030_RPC_Datatypes.robot
csit/variables/lispflowmapping/Be/rpc_add-mapping_sp_ipv4.json [new file with mode: 0644]
csit/variables/lispflowmapping/Be/rpc_get-remove_sp.json [new file with mode: 0644]

index de58fbf6c65786f0e5f390aefc80a0a15da82a5d..2287f2f3bc22e6907a7eda88f38b1e932a42f03d 100644 (file)
@@ -46,6 +46,10 @@ Key/Value
     [Documentation]    Perform mapping operations with a Key/Value EID
     rpc_add-mapping_kv_ipv4.json    rpc_get-remove_kv.json
 
+Service Path
+    [Documentation]    Perform mapping operations with a Service Path EID
+    rpc_add-mapping_sp_ipv4.json    rpc_get-remove_sp.json
+
 AFI List
     [Documentation]    Perform mapping operations with an IPv4 EID mapped to an AFI List RLOC
     rpc_add-mapping_ipv4_list.json    rpc_get-remove_ipv4.json
diff --git a/csit/variables/lispflowmapping/Be/rpc_add-mapping_sp_ipv4.json b/csit/variables/lispflowmapping/Be/rpc_add-mapping_sp_ipv4.json
new file mode 100644 (file)
index 0000000..a90d0c2
--- /dev/null
@@ -0,0 +1,32 @@
+{
+    "input": {
+        "mapping-record": {
+            "recordTtl": 1440,
+            "action": "NoAction",
+            "authoritative": true,
+            "eid": {
+                "address-type": "ietf-lisp-address-types:service-path-lcaf",
+                "service-path": {
+                    "service-path-id": 42,
+                    "service-index": 3
+                }
+            },
+            "LocatorRecord": [
+                {
+                    "locator-id": "ISP1",
+                    "priority": 1,
+                    "weight": 1,
+                    "multicastPriority": 255,
+                    "multicastWeight": 0,
+                    "localLocator": true,
+                    "rlocProbed": false,
+                    "routed": false,
+                    "rloc": {
+                        "address-type": "ietf-lisp-address-types:ipv4-afi",
+                        "ipv4": "10.10.10.10"
+                    }
+                }
+            ]
+        }
+    }
+}
diff --git a/csit/variables/lispflowmapping/Be/rpc_get-remove_sp.json b/csit/variables/lispflowmapping/Be/rpc_get-remove_sp.json
new file mode 100644 (file)
index 0000000..9c71583
--- /dev/null
@@ -0,0 +1,11 @@
+{
+    "input": {
+        "eid": {
+            "address-type": "ietf-lisp-address-types:service-path-lcaf",
+            "service-path": {
+                "service-path-id": 42,
+                "service-index": 3
+            }
+        }
+    }
+}