From 27d550e60543404c988c6897cad6794d0f4665e5 Mon Sep 17 00:00:00 2001 From: Lorand Jakab Date: Wed, 10 Jun 2015 22:32:57 +0300 Subject: [PATCH] Add RPC data type test cases for lispflowmapping Change-Id: I6c69873c9b35ef70077ae6ba1c75cfc3d6ebd085 Signed-off-by: Lorand Jakab (cherry picked from commit 738f9f70cecc6ab389353803e337636f4bc7869e) --- .../basic/030_RPC_Datatypes.robot | 112 ++++++++++++++++++ .../rpc_add-mapping_as_ipv4.json | 31 +++++ .../rpc_add-mapping_dn_ipv4.json | 31 +++++ .../rpc_add-mapping_iid_ipv4.json | 39 ++++++ .../rpc_add-mapping_ipv4_appdata.json | 43 +++++++ .../rpc_add-mapping_ipv4_elp.json | 73 ++++++++++++ .../rpc_add-mapping_ipv4_list.json | 47 ++++++++ .../rpc_add-mapping_ipv6_ipv4.json | 31 +++++ .../rpc_add-mapping_kv_ipv4.json | 43 +++++++ .../rpc_add-mapping_mac_ipv4.json | 31 +++++ .../rpc_add-mapping_srcdst_ipv4.json | 45 +++++++ .../lispflowmapping/rpc_get-remove_as.json | 11 ++ .../lispflowmapping/rpc_get-remove_dn.json | 11 ++ .../lispflowmapping/rpc_get-remove_iid.json | 19 +++ .../lispflowmapping/rpc_get-remove_ipv6.json | 11 ++ .../lispflowmapping/rpc_get-remove_kv.json | 23 ++++ .../lispflowmapping/rpc_get-remove_mac.json | 11 ++ .../rpc_get-remove_srcdst.json | 25 ++++ 18 files changed, 637 insertions(+) create mode 100644 test/csit/suites/lispflowmapping/basic/030_RPC_Datatypes.robot create mode 100644 test/csit/variables/lispflowmapping/rpc_add-mapping_as_ipv4.json create mode 100644 test/csit/variables/lispflowmapping/rpc_add-mapping_dn_ipv4.json create mode 100644 test/csit/variables/lispflowmapping/rpc_add-mapping_iid_ipv4.json create mode 100644 test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_appdata.json create mode 100644 test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_elp.json create mode 100644 test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_list.json create mode 100644 test/csit/variables/lispflowmapping/rpc_add-mapping_ipv6_ipv4.json create mode 100644 test/csit/variables/lispflowmapping/rpc_add-mapping_kv_ipv4.json create mode 100644 test/csit/variables/lispflowmapping/rpc_add-mapping_mac_ipv4.json create mode 100644 test/csit/variables/lispflowmapping/rpc_add-mapping_srcdst_ipv4.json create mode 100644 test/csit/variables/lispflowmapping/rpc_get-remove_as.json create mode 100644 test/csit/variables/lispflowmapping/rpc_get-remove_dn.json create mode 100644 test/csit/variables/lispflowmapping/rpc_get-remove_iid.json create mode 100644 test/csit/variables/lispflowmapping/rpc_get-remove_ipv6.json create mode 100644 test/csit/variables/lispflowmapping/rpc_get-remove_kv.json create mode 100644 test/csit/variables/lispflowmapping/rpc_get-remove_mac.json create mode 100644 test/csit/variables/lispflowmapping/rpc_get-remove_srcdst.json 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 index 0000000000..33b9f6bb68 --- /dev/null +++ b/test/csit/suites/lispflowmapping/basic/030_RPC_Datatypes.robot @@ -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 index 0000000000..19375833e0 --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_add-mapping_as_ipv4.json @@ -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 index 0000000000..b328168294 --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_add-mapping_dn_ipv4.json @@ -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 index 0000000000..e37ff8c9ea --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_add-mapping_iid_ipv4.json @@ -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 index 0000000000..8ad4d735ed --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_appdata.json @@ -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 index 0000000000..b6a77cb2f4 --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_elp.json @@ -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 index 0000000000..3f0a95709c --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_add-mapping_ipv4_list.json @@ -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 index 0000000000..2ce5e473ae --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_add-mapping_ipv6_ipv4.json @@ -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 index 0000000000..9becea9223 --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_add-mapping_kv_ipv4.json @@ -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 index 0000000000..82d19dffb1 --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_add-mapping_mac_ipv4.json @@ -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 index 0000000000..e5c7e42007 --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_add-mapping_srcdst_ipv4.json @@ -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 index 0000000000..f5d89af93d --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_get-remove_as.json @@ -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 index 0000000000..2dea020fb5 --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_get-remove_dn.json @@ -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 index 0000000000..32f81b6676 --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_get-remove_iid.json @@ -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 index 0000000000..f7003ec05c --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_get-remove_ipv6.json @@ -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 index 0000000000..bd595355ed --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_get-remove_kv.json @@ -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 index 0000000000..5bdf754d43 --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_get-remove_mac.json @@ -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 index 0000000000..bc5e886cec --- /dev/null +++ b/test/csit/variables/lispflowmapping/rpc_get-remove_srcdst.json @@ -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 + } +} -- 2.36.6