Add RPC data type test cases for lispflowmapping
authorLorand Jakab <lojakab@cisco.com>
Wed, 10 Jun 2015 19:32:57 +0000 (22:32 +0300)
committerJamo Luhrsen <james.luhrsen@hp.com>
Thu, 11 Jun 2015 05:59:30 +0000 (05:59 +0000)
Change-Id: I6c69873c9b35ef70077ae6ba1c75cfc3d6ebd085
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit 738f9f70cecc6ab389353803e337636f4bc7869e)

18 files changed:
test/csit/suites/lispflowmapping/basic/030_RPC_Datatypes.robot [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_add-mapping_as_ipv4.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_add-mapping_dn_ipv4.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_add-mapping_iid_ipv4.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_appdata.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_elp.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_list.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_add-mapping_ipv6_ipv4.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_add-mapping_kv_ipv4.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_add-mapping_mac_ipv4.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_add-mapping_srcdst_ipv4.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_get-remove_as.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_get-remove_dn.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_get-remove_iid.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_get-remove_ipv6.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_get-remove_kv.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_get-remove_mac.json [new file with mode: 0644]
test/csit/variables/lispflowmapping/rpc_get-remove_srcdst.json [new file with mode: 0644]

diff --git a/test/csit/suites/lispflowmapping/basic/030_RPC_Datatypes.robot b/test/csit/suites/lispflowmapping/basic/030_RPC_Datatypes.robot
new file mode 100644 (file)
index 0000000..33b9f6b
--- /dev/null
@@ -0,0 +1,112 @@
+*** Settings ***
+Documentation     Test suite to verify data types using RPCs
+Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
+Suite Teardown    Delete All Sessions
+Test Setup        Set Suite Variable    ${CURJSON}    ${EMPTY}
+Test Template     Check Datatype
+Test Teardown     Remove Datatype And Check Removal
+Library           Collections
+Library           OperatingSystem
+Library           RequestsLibrary
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
+Resource          ../../../libraries/Utils.txt
+
+*** Variables ***
+${RPC_URL_PREFIX}    /restconf/operations/lfm-mapping-database
+${IPV4_C_MAP}     ${CURDIR}/../../../variables/lispflowmapping/rpc_add-mapping_ipv4_ipv4.json
+${IPV4_RD}        ${CURDIR}/../../../variables/lispflowmapping/rpc_get-remove_ipv4.json
+${IPV6_C_MAP}     ${CURDIR}/../../../variables/lispflowmapping/rpc_add-mapping_ipv6_ipv4.json
+${IPV6_RD}        ${CURDIR}/../../../variables/lispflowmapping/rpc_get-remove_ipv6.json
+${MAC_C_MAP}      ${CURDIR}/../../../variables/lispflowmapping/rpc_add-mapping_mac_ipv4.json
+${MAC_RD}         ${CURDIR}/../../../variables/lispflowmapping/rpc_get-remove_mac.json
+${DN_C_MAP}       ${CURDIR}/../../../variables/lispflowmapping/rpc_add-mapping_dn_ipv4.json
+${DN_RD}          ${CURDIR}/../../../variables/lispflowmapping/rpc_get-remove_dn.json
+${AS_C_MAP}       ${CURDIR}/../../../variables/lispflowmapping/rpc_add-mapping_as_ipv4.json
+${AS_RD}          ${CURDIR}/../../../variables/lispflowmapping/rpc_get-remove_as.json
+${IID_C_MAP}      ${CURDIR}/../../../variables/lispflowmapping/rpc_add-mapping_iid_ipv4.json
+${IID_RD}         ${CURDIR}/../../../variables/lispflowmapping/rpc_get-remove_iid.json
+${SD_C_MAP}       ${CURDIR}/../../../variables/lispflowmapping/rpc_add-mapping_srcdst_ipv4.json
+${SD_RD}          ${CURDIR}/../../../variables/lispflowmapping/rpc_get-remove_srcdst.json
+${KV_C_MAP}       ${CURDIR}/../../../variables/lispflowmapping/rpc_add-mapping_kv_ipv4.json
+${KV_RD}          ${CURDIR}/../../../variables/lispflowmapping/rpc_get-remove_kv.json
+${LST_C_MAP}      ${CURDIR}/../../../variables/lispflowmapping/rpc_add-mapping_ipv4_list.json
+${APP_C_MAP}      ${CURDIR}/../../../variables/lispflowmapping/rpc_add-mapping_ipv4_appdata.json
+${ELP_C_MAP}      ${CURDIR}/../../../variables/lispflowmapping/rpc_add-mapping_ipv4_elp.json
+
+*** Test Cases ***
+IPv4 Prefix
+    [Documentation]    Perform mapping operations with an IPv4 EID
+    ${IPV4_C_MAP}    ${IPV4_RD}
+
+IPv6 Prefix
+    [Documentation]    Perform mapping operations with an IPv6 EID
+    ${IPV6_C_MAP}    ${IPV6_RD}
+
+MAC Address
+    [Documentation]    Perform mapping operations with a MAC address EID
+    ${MAC_C_MAP}    ${MAC_RD}
+
+Distinguished Name
+    [Documentation]    Perform mapping operations with a Distinguished Name EID
+    ${DN_C_MAP}    ${DN_RD}
+
+AS Number
+    [Documentation]    Perform mapping operations with an Autonomous System Number EID
+    ${AS_C_MAP}    ${AS_RD}
+
+Instance ID
+    [Documentation]    Perform mapping operations with an IPv4 EID in Instance ID 1
+    ${IID_C_MAP}    ${IID_RD}
+
+Source/Destination
+    [Documentation]    Perform mapping operations with a Source/Destination EID
+    ${SD_C_MAP}    ${SD_RD}
+
+Key/Value
+    [Documentation]    Perform mapping operations with a Key/Value EID
+    ${KV_C_MAP}    ${KV_RD}
+
+AFI List
+    [Documentation]    Perform mapping operations with an IPv4 EID mapped to an AFI List RLOC
+    ${LST_C_MAP}    ${IPV4_RD}
+
+Application Data
+    [Documentation]    Perform mapping operations with an IPv4 EID mapped to an Application Data RLOC
+    ${APP_C_MAP}    ${IPV4_RD}
+
+Explicit Locator Path
+    [Documentation]    Perform mapping operations with an IPv4 EID mapped to an ELP RLOC
+    ${ELP_C_MAP}    ${IPV4_RD}
+
+*** Keywords ***
+Check Datatype
+    [Arguments]    ${add_mapping_json_file}    ${get_mapping_json_file}
+    [Documentation]    Perform CRD operations using a specific datatype
+    ${add_mapping}=    OperatingSystem.Get File    ${add_mapping_json_file}
+    ${get_mapping}=    OperatingSystem.Get File    ${get_mapping_json_file}
+    Set Suite Variable    ${CURJSON}    ${get_mapping}
+    Post Log Check    ${RPC_URL_PREFIX}:add-mapping    ${add_mapping}
+    ${resp}=    Post Log Check    ${RPC_URL_PREFIX}:get-mapping    ${get_mapping}
+    ${output}=    Get From Dictionary    ${resp.json()}    output
+    ${eid_record}=    Get From Dictionary    ${output}    eidToLocatorRecord
+    ${eid_record_0}=    Get From List    ${eid_record}    0
+    Dictionary Should Contain Key    ${eid_record_0}    LocatorRecord
+
+Remove Datatype And Check Removal
+    Variable Should Exist    ${CURJSON}
+    Post Log Check    ${RPC_URL_PREFIX}:remove-mapping    ${CURJSON}
+    ${resp}=    Post Log Check    ${RPC_URL_PREFIX}:get-mapping    ${CURJSON}
+    ${output}=    Get From Dictionary    ${resp.json()}    output
+    ${eid_record}=    Get From Dictionary    ${output}    eidToLocatorRecord
+    ${eid_record_0}=    Get From List    ${eid_record}    0
+    Dictionary Should Not Contain Key    ${eid_record_0}    LocatorRecord
+    Set Suite Variable    ${CURJSON}    ${EMPTY}
+
+Post Log Check
+    [Arguments]    ${uri}    ${body}    ${status_code}=200
+    [Documentation]    Post body to uri, log response content, and check status
+    ${resp}=    RequestsLibrary.Post    session    ${uri}    ${body}
+    Log    ${resp.content}
+    Should Be Equal As Strings    ${resp.status_code}    ${status_code}
+    [Return]    ${resp}
diff --git a/test/csit/variables/lispflowmapping/rpc_add-mapping_as_ipv4.json b/test/csit/variables/lispflowmapping/rpc_add-mapping_as_ipv4.json
new file mode 100644 (file)
index 0000000..1937583
--- /dev/null
@@ -0,0 +1,31 @@
+{
+    "input": {
+        "recordTtl": 1440,
+        "maskLength": 0,
+        "authoritative": true,
+        "LispAddressContainer": {
+            "AS": {
+                "afi": 18,
+                "AS": 64500
+            }
+        },
+        "LocatorRecord": [
+            {
+                "name": "ISP1",
+                "priority": 1,
+                "weight": 1,
+                "multicastPriority": 255,
+                "multicastWeight": 0,
+                "localLocator": true,
+                "rlocProbed": false,
+                "routed": false,
+                "LispAddressContainer": {
+                    "Ipv4Address": {
+                        "afi": 1,
+                        "Ipv4Address": "10.10.10.10"
+                    }
+                }
+            }
+        ]
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_add-mapping_dn_ipv4.json b/test/csit/variables/lispflowmapping/rpc_add-mapping_dn_ipv4.json
new file mode 100644 (file)
index 0000000..b328168
--- /dev/null
@@ -0,0 +1,31 @@
+{
+    "input": {
+        "recordTtl": 1440,
+        "maskLength": 0,
+        "authoritative": true,
+        "LispAddressContainer": {
+            "distinguishedName": {
+                "afi": 17,
+                "distinguishedName": "stringAsIs"
+            }
+        },
+        "LocatorRecord": [
+            {
+                "name": "ISP1",
+                "priority": 1,
+                "weight": 1,
+                "multicastPriority": 255,
+                "multicastWeight": 0,
+                "localLocator": true,
+                "rlocProbed": false,
+                "routed": false,
+                "LispAddressContainer": {
+                    "Ipv4Address": {
+                        "afi": 1,
+                        "Ipv4Address": "10.10.10.10"
+                    }
+                }
+            }
+        ]
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_add-mapping_iid_ipv4.json b/test/csit/variables/lispflowmapping/rpc_add-mapping_iid_ipv4.json
new file mode 100644 (file)
index 0000000..e37ff8c
--- /dev/null
@@ -0,0 +1,39 @@
+{
+    "input": {
+        "recordTtl": 1440,
+        "maskLength": 24,
+        "authoritative": true,
+        "LispAddressContainer": {
+            "LcafSegmentAddr": {
+                "afi": 16387,
+                "lcafType": 2,
+                "instanceId": 1,
+                "iidMaskLength": 32,
+                "Address": {
+                    "Ipv4Address": {
+                        "Ipv4Address": "192.0.2.0",
+                        "afi": 1
+                    }
+                }
+            }
+        },
+        "LocatorRecord": [
+            {
+                "name": "ISP1",
+                "priority": 1,
+                "weight": 1,
+                "multicastPriority": 255,
+                "multicastWeight": 0,
+                "localLocator": true,
+                "rlocProbed": false,
+                "routed": false,
+                "LispAddressContainer": {
+                    "Ipv4Address": {
+                        "afi": 1,
+                        "Ipv4Address": "10.10.10.10"
+                    }
+                }
+            }
+        ]
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_appdata.json b/test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_appdata.json
new file mode 100644 (file)
index 0000000..8ad4d73
--- /dev/null
@@ -0,0 +1,43 @@
+{
+    "input": {
+        "recordTtl": 1440,
+        "maskLength": 32,
+        "authoritative": true,
+        "LispAddressContainer": {
+            "Ipv4Address": {
+                "afi": 1,
+                "Ipv4Address": "192.0.2.1"
+            }
+        },
+        "LocatorRecord": [
+            {
+                "name": "AppData",
+                "priority": 1,
+                "weight": 1,
+                "multicastPriority": 255,
+                "multicastWeight": 0,
+                "localLocator": true,
+                "rlocProbed": false,
+                "routed": false,
+                "LispAddressContainer": {
+                    "LcafApplicationDataAddr": {
+                        "afi": 16387,
+                        "lcafType": 4,
+                        "protocol": 17,
+                        "ipTos": 128,
+                        "localPortLow": 80,
+                        "localPortHigh": 81,
+                        "remotePortLow": 6667,
+                        "remotePortHigh": 7000,
+                        "Address": {
+                            "Ipv4Address": {
+                                "afi": 1,
+                                "Ipv4Address": "10.10.10.10"
+                            }
+                        }
+                    }
+                }
+            }
+        ]
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_elp.json b/test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_elp.json
new file mode 100644 (file)
index 0000000..b6a77cb
--- /dev/null
@@ -0,0 +1,73 @@
+{
+    "input": {
+        "recordTtl": 1440,
+        "maskLength": 32,
+        "authoritative": true,
+        "LispAddressContainer": {
+            "Ipv4Address": {
+                "afi": 1,
+                "Ipv4Address": "192.0.2.1"
+            }
+        },
+        "LocatorRecord": [
+            {
+                "name": "IPv4",
+                "priority": 2,
+                "weight": 1,
+                "multicastPriority": 255,
+                "multicastWeight": 0,
+                "localLocator": true,
+                "rlocProbed": false,
+                "routed": false,
+                "LispAddressContainer": {
+                    "Ipv4Address": {
+                        "afi": 1,
+                        "Ipv4Address": "10.10.10.10"
+                    }
+                }
+            },
+            {
+                "name": "ELP",
+                "priority": 1,
+                "weight": 1,
+                "multicastPriority": 255,
+                "multicastWeight": 0,
+                "localLocator": true,
+                "rlocProbed": false,
+                "routed": false,
+                "LispAddressContainer": {
+                    "LcafTrafficEngineeringAddr": {
+                        "afi": 16387,
+                        "lcafType": 10,
+                        "Hops": [
+                            {
+                                "name": "Hop 1",
+                                "lookup": false,
+                                "RLOCProbe": false,
+                                "strict": true,
+                                "hop": {
+                                    "Ipv4Address": {
+                                        "afi": 1,
+                                        "Ipv4Address": "20.20.20.20"
+                                    }
+                                }
+                            },
+                            {
+                                "name": "Hop 2",
+                                "lookup": false,
+                                "RLOCProbe": false,
+                                "strict": true,
+                                "hop": {
+                                    "Ipv4Address": {
+                                        "afi": 1,
+                                        "Ipv4Address": "30.30.30.30"
+                                    }
+                                }
+                            }
+                        ]
+                    }
+                }
+            }
+        ]
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_list.json b/test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_list.json
new file mode 100644 (file)
index 0000000..3f0a957
--- /dev/null
@@ -0,0 +1,47 @@
+{
+    "input": {
+        "recordTtl": 1440,
+        "maskLength": 32,
+        "authoritative": true,
+        "LispAddressContainer": {
+            "Ipv4Address": {
+                "afi": 1,
+                "Ipv4Address": "192.0.2.1"
+            }
+        },
+        "LocatorRecord": [
+            {
+                "name": "List",
+                "priority": 1,
+                "weight": 1,
+                "multicastPriority": 255,
+                "multicastWeight": 0,
+                "localLocator": true,
+                "rlocProbed": false,
+                "routed": false,
+                "LispAddressContainer": {
+                    "LcafListAddr": {
+                        "afi": 16387,
+                        "lcafType": 1,
+                        "Addresses": [
+                            {
+                                "name": "IPv4",
+                                "Ipv4Address": {
+                                    "afi": 1,
+                                    "Ipv4Address": "10.10.10.10"
+                                }
+                            },
+                            {
+                                "name": "IPv6",
+                                "Ipv6Address": {
+                                    "afi": 2,
+                                    "Ipv6Address": "2001:db8::1"
+                                }
+                            }
+                        ]
+                    }
+                }
+            }
+        ]
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_add-mapping_ipv6_ipv4.json b/test/csit/variables/lispflowmapping/rpc_add-mapping_ipv6_ipv4.json
new file mode 100644 (file)
index 0000000..2ce5e47
--- /dev/null
@@ -0,0 +1,31 @@
+{
+    "input": {
+        "recordTtl": 1440,
+        "maskLength": 128,
+        "authoritative": true,
+        "LispAddressContainer": {
+            "Ipv6Address": {
+                "afi": 2,
+                "Ipv6Address": "2001:db8::1"
+            }
+        },
+        "LocatorRecord": [
+            {
+                "name": "ISP1",
+                "priority": 1,
+                "weight": 1,
+                "multicastPriority": 255,
+                "multicastWeight": 0,
+                "localLocator": true,
+                "rlocProbed": false,
+                "routed": false,
+                "LispAddressContainer": {
+                    "Ipv4Address": {
+                        "afi": 1,
+                        "Ipv4Address": "10.10.10.10"
+                    }
+                }
+            }
+        ]
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_add-mapping_kv_ipv4.json b/test/csit/variables/lispflowmapping/rpc_add-mapping_kv_ipv4.json
new file mode 100644 (file)
index 0000000..9becea9
--- /dev/null
@@ -0,0 +1,43 @@
+{
+    "input": {
+        "recordTtl": 1440,
+        "maskLength": 0,
+        "authoritative": true,
+        "LispAddressContainer": {
+            "LcafKeyValueAddressAddr": {
+                "afi": 16387,
+                "lcafType": 15,
+                "key": {
+                    "Ipv4Address": {
+                        "Ipv4Address": "192.0.2.1",
+                        "afi": 1
+                    }
+                },
+                "value": {
+                    "Ipv4Address": {
+                        "Ipv4Address": "192.0.2.2",
+                        "afi": 1
+                    }
+                }
+            }
+        },
+        "LocatorRecord": [
+            {
+                "name": "ISP1",
+                "priority": 1,
+                "weight": 1,
+                "multicastPriority": 255,
+                "multicastWeight": 0,
+                "localLocator": true,
+                "rlocProbed": false,
+                "routed": false,
+                "LispAddressContainer": {
+                    "Ipv4Address": {
+                        "afi": 1,
+                        "Ipv4Address": "10.10.10.10"
+                    }
+                }
+            }
+        ]
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_add-mapping_mac_ipv4.json b/test/csit/variables/lispflowmapping/rpc_add-mapping_mac_ipv4.json
new file mode 100644 (file)
index 0000000..82d19df
--- /dev/null
@@ -0,0 +1,31 @@
+{
+    "input": {
+        "recordTtl": 1440,
+        "maskLength": 0,
+        "authoritative": true,
+        "LispAddressContainer": {
+            "MacAddress": {
+                "afi": 16389,
+                "MacAddress": "00:11:22:33:44:55"
+            }
+        },
+        "LocatorRecord": [
+            {
+                "name": "ISP1",
+                "priority": 1,
+                "weight": 1,
+                "multicastPriority": 255,
+                "multicastWeight": 0,
+                "localLocator": true,
+                "rlocProbed": false,
+                "routed": false,
+                "LispAddressContainer": {
+                    "Ipv4Address": {
+                        "afi": 1,
+                        "Ipv4Address": "10.10.10.10"
+                    }
+                }
+            }
+        ]
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_add-mapping_srcdst_ipv4.json b/test/csit/variables/lispflowmapping/rpc_add-mapping_srcdst_ipv4.json
new file mode 100644 (file)
index 0000000..e5c7e42
--- /dev/null
@@ -0,0 +1,45 @@
+{
+    "input": {
+        "recordTtl": 1440,
+        "maskLength": 0,
+        "authoritative": true,
+        "LispAddressContainer": {
+            "LcafSourceDestAddr": {
+                "afi": 16387,
+                "lcafType": 12,
+                "srcAddress": {
+                    "Ipv4Address": {
+                        "Ipv4Address": "192.0.2.1",
+                        "afi": 1
+                    }
+                },
+                "srcMaskLength": 32,
+                "dstAddress": {
+                    "Ipv4Address": {
+                        "Ipv4Address": "192.0.2.2",
+                        "afi": 1
+                    }
+                },
+                "dstMaskLength": 32
+            }
+        },
+        "LocatorRecord": [
+            {
+                "name": "ISP1",
+                "priority": 1,
+                "weight": 1,
+                "multicastPriority": 255,
+                "multicastWeight": 0,
+                "localLocator": true,
+                "rlocProbed": false,
+                "routed": false,
+                "LispAddressContainer": {
+                    "Ipv4Address": {
+                        "afi": 1,
+                        "Ipv4Address": "10.10.10.10"
+                    }
+                }
+            }
+        ]
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_get-remove_as.json b/test/csit/variables/lispflowmapping/rpc_get-remove_as.json
new file mode 100644 (file)
index 0000000..f5d89af
--- /dev/null
@@ -0,0 +1,11 @@
+{
+    "input": {
+        "LispAddressContainer": {
+            "AS": {
+                "afi": 18,
+                "AS": 64500
+            }
+        },
+        "mask-length": 0
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_get-remove_dn.json b/test/csit/variables/lispflowmapping/rpc_get-remove_dn.json
new file mode 100644 (file)
index 0000000..2dea020
--- /dev/null
@@ -0,0 +1,11 @@
+{
+    "input": {
+        "LispAddressContainer": {
+            "distinguishedName": {
+                "afi": 17,
+                "distinguishedName": "stringAsIs"
+            }
+        },
+        "mask-length": 0
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_get-remove_iid.json b/test/csit/variables/lispflowmapping/rpc_get-remove_iid.json
new file mode 100644 (file)
index 0000000..32f81b6
--- /dev/null
@@ -0,0 +1,19 @@
+{
+    "input": {
+        "LispAddressContainer": {
+            "LcafSegmentAddr": {
+                "afi": 16387,
+                "lcafType": 2,
+                "instanceId": 1,
+                "iidMaskLength": 32,
+                "Address": {
+                    "Ipv4Address": {
+                        "Ipv4Address": "192.0.2.0",
+                        "afi": 1
+                    }
+                }
+            }
+        },
+        "mask-length": 24
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_get-remove_ipv6.json b/test/csit/variables/lispflowmapping/rpc_get-remove_ipv6.json
new file mode 100644 (file)
index 0000000..f7003ec
--- /dev/null
@@ -0,0 +1,11 @@
+{
+    "input": {
+        "LispAddressContainer": {
+            "Ipv6Address": {
+                "afi": 2,
+                "Ipv6Address": "2001:db8::1"
+            }
+        },
+        "mask-length": 128
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_get-remove_kv.json b/test/csit/variables/lispflowmapping/rpc_get-remove_kv.json
new file mode 100644 (file)
index 0000000..bd59535
--- /dev/null
@@ -0,0 +1,23 @@
+{
+    "input": {
+        "LispAddressContainer": {
+            "LcafKeyValueAddressAddr": {
+                "afi": 16387,
+                "lcafType": 15,
+                "key": {
+                    "Ipv4Address": {
+                        "Ipv4Address": "192.0.2.1",
+                        "afi": 1
+                    }
+                },
+                "value": {
+                    "Ipv4Address": {
+                        "Ipv4Address": "192.0.2.2",
+                        "afi": 1
+                    }
+                }
+            }
+        },
+        "mask-length": 0
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_get-remove_mac.json b/test/csit/variables/lispflowmapping/rpc_get-remove_mac.json
new file mode 100644 (file)
index 0000000..5bdf754
--- /dev/null
@@ -0,0 +1,11 @@
+{
+    "input": {
+        "LispAddressContainer": {
+            "MacAddress": {
+                "afi": 16389,
+                "MacAddress": "00:11:22:33:44:55"
+            }
+        },
+        "mask-length": 0
+    }
+}
diff --git a/test/csit/variables/lispflowmapping/rpc_get-remove_srcdst.json b/test/csit/variables/lispflowmapping/rpc_get-remove_srcdst.json
new file mode 100644 (file)
index 0000000..bc5e886
--- /dev/null
@@ -0,0 +1,25 @@
+{
+    "input": {
+        "LispAddressContainer": {
+            "LcafSourceDestAddr": {
+                "afi": 16387,
+                "lcafType": 12,
+                "srcAddress": {
+                    "Ipv4Address": {
+                        "Ipv4Address": "192.0.2.1",
+                        "afi": 1
+                    }
+                },
+                "srcMaskLength": 32,
+                "dstAddress": {
+                    "Ipv4Address": {
+                        "Ipv4Address": "192.0.2.2",
+                        "afi": 1
+                    }
+                },
+                "dstMaskLength": 32
+            }
+        },
+        "mask-length": 0
+    }
+}