From: Ashish Date: Fri, 22 Jan 2016 09:32:06 +0000 (+0530) Subject: Added keyword to get the rloc object pointed to by hop_index. X-Git-Tag: release/beryllium-sr1~193 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Ftest.git;a=commitdiff_plain;h=1ce73c7bea6922531903ad9fe8504aebea274d18 Added keyword to get the rloc object pointed to by hop_index. Change-Id: Ieb0211d98e198ae94cddc5cad479b07454077769 Signed-off-by: Ashish --- diff --git a/csit/libraries/LISPFlowMapping.robot b/csit/libraries/LISPFlowMapping.robot index 6464dc1228..79571cc7d7 100644 --- a/csit/libraries/LISPFlowMapping.robot +++ b/csit/libraries/LISPFlowMapping.robot @@ -42,6 +42,15 @@ Get Ipv4 Rloc ${ipv4}= Get From Dictionary ${loc} ipv4 [Return] ${ipv4} +Get Elp Hop + [Arguments] ${loc_record} ${hop_index} + [Documentation] Returns the Rloc object pointed to by ${hop_index} + ${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} + [Return] ${hop} + Check Mapping Removal [Arguments] ${json} Post Log Check ${LFM_RPC_API}:get-mapping ${json} 404