2 Documentation Test suite to verify data types using RPCs
3 Suite Setup Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS}
4 Suite Teardown Delete All Sessions
5 Test Setup Set Suite Variable ${RPC_Datatype__current_json} ${EMPTY}
6 Test Teardown Remove Datatype And Check Removal
7 Test Template Check Datatype
9 Library OperatingSystem
10 Library RequestsLibrary
11 Library ../../../libraries/Common.py
12 Variables ../../../variables/Variables.py
13 Resource ../../../libraries/LISPFlowMapping.robot
14 Resource ../../../libraries/Utils.robot
18 [Documentation] Perform mapping operations with an IPv4 EID
19 rpc_add-mapping_ipv4_ipv4.json rpc_get-remove_ipv4.json
22 [Documentation] Perform mapping operations with an IPv6 EID
23 rpc_add-mapping_ipv6_ipv4.json rpc_get-remove_ipv6.json
26 [Documentation] Perform mapping operations with a MAC address EID
27 rpc_add-mapping_mac_ipv4.json rpc_get-remove_mac.json
30 [Documentation] Perform mapping operations with a Distinguished Name EID
31 rpc_add-mapping_dn_ipv4.json rpc_get-remove_dn.json
34 [Documentation] Perform mapping operations with an Autonomous System Number EID
35 rpc_add-mapping_as_ipv4.json rpc_get-remove_as.json
38 [Documentation] Perform mapping operations with an IPv4 EID in Instance ID 1
39 rpc_add-mapping_iid_ipv4.json rpc_get-remove_iid.json
42 [Documentation] Perform mapping operations with a Source/Destination EID
43 rpc_add-mapping_srcdst_ipv4.json rpc_get-remove_srcdst.json
46 [Documentation] Perform mapping operations with a Key/Value EID
47 rpc_add-mapping_kv_ipv4.json rpc_get-remove_kv.json
50 [Documentation] Perform mapping operations with a Service Path EID
51 rpc_add-mapping_sp_ipv4.json rpc_get-remove_sp.json
54 [Documentation] Perform mapping operations with an IPv4 EID mapped to an AFI List RLOC
55 rpc_add-mapping_ipv4_list.json rpc_get-remove_ipv4.json
58 [Documentation] Perform mapping operations with an IPv4 EID mapped to an Application Data RLOC
59 rpc_add-mapping_ipv4_appdata.json rpc_get-remove_ipv4.json
62 [Documentation] Perform mapping operations with an IPv4 EID mapped to an ELP RLOC
63 rpc_add-mapping_ipv4_elp.json rpc_get-remove_ipv4.json
67 [Arguments] ${add_mapping_json_file} ${get_mapping_json_file}
68 [Documentation] Perform CRD operations using a specific datatype
69 ${add_mapping}= OperatingSystem.Get File ${JSON_DIR}/${add_mapping_json_file}
70 ${get_mapping}= OperatingSystem.Get File ${JSON_DIR}/${get_mapping_json_file}
71 Set Suite Variable ${RPC_Datatype__current_json} ${get_mapping}
72 Post Log Check ${LFM_RPC_API}:add-mapping ${add_mapping}
73 Sleep 200ms Avoid race conditions
74 ${resp}= Post Log Check ${LFM_RPC_API}:get-mapping ${get_mapping}
75 ${eid_record}= Get Eid Record ${resp}
76 Dictionary Should Contain Key ${eid_record} LocatorRecord
78 Remove Datatype And Check Removal
79 Variable Should Exist ${RPC_Datatype__current_json}
80 Post Log Check ${LFM_RPC_API}:remove-mapping ${RPC_Datatype__current_json}
81 Sleep 200ms Avoid race conditions
82 Check Mapping Removal ${RPC_Datatype__current_json}
83 Set Suite Variable ${RPC_Datatype__current_json} ${EMPTY}