X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FLISPFlowMapping.robot;h=9dad54ef0fad7e061376c0ec787fb5c3d83308e9;hb=ba486e3bad2b2273218b86058841a8a61eaa7e74;hp=79571cc7d713a78778b5f9bc7885ed3c7637ce0a;hpb=1ce73c7bea6922531903ad9fe8504aebea274d18;p=integration%2Ftest.git diff --git a/csit/libraries/LISPFlowMapping.robot b/csit/libraries/LISPFlowMapping.robot index 79571cc7d7..9dad54ef0f 100644 --- a/csit/libraries/LISPFlowMapping.robot +++ b/csit/libraries/LISPFlowMapping.robot @@ -3,6 +3,7 @@ Documentation This resource file defines keywords that are used in more ... than one lispflowmapping test suite. Those suites include ... ../variables/Variables.py, which is where some of the ... variables are coming from. +Library JsonGenerator.py *** Variables *** ${JSON_DIR} ${CURDIR}/../variables/lispflowmapping/Be @@ -48,9 +49,19 @@ Get Elp Hop ${rloc}= Get From Dictionary ${loc_record} rloc ${exp_loc_path}= Get From Dictionary ${rloc} explicit-locator-path ${actual_hop_index}= Evaluate ${hop_index} - 1 - ${hop}= Get From List ${exp_loc_path} ${actual_hop_index} + ${hop}= Get From List ${exp_loc_path} ${actual_hop_index} [Return] ${hop} Check Mapping Removal [Arguments] ${json} Post Log Check ${LFM_RPC_API}:get-mapping ${json} 404 + +Get Mapping JSON + [Arguments] ${eid} ${rloc} + [Documentation] Returns mapping record JSON dict + ${loc_record}= Get LocatorRecord Object ${rloc} + ${lisp_address}= Get LispAddress Object ${eid} + ${loc_record_list}= Create List ${loc_record} + ${mapping_record_json}= Get MappingRecord JSON ${lisp_address} ${loc_record_list} + ${mapping}= Wrap input ${mapping_record_json} + [Return] ${mapping}