X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FFlowLib.robot;h=399789d13ff24136b93ef11c8dfd50b14bebf023;hb=8fdfa4b884b56b152945dafd4627c6040c81778d;hp=084994eb9013dbdc44539fa2703eaa1c3b6cf2c6;hpb=270cbc2ee02bb04295ce4bd8d31054bc02ce3bba;p=integration%2Ftest.git diff --git a/csit/libraries/FlowLib.robot b/csit/libraries/FlowLib.robot index 084994eb90..399789d13f 100644 --- a/csit/libraries/FlowLib.robot +++ b/csit/libraries/FlowLib.robot @@ -18,7 +18,6 @@ Check No Switches In Inventory [Documentation] Check no switch is in inventory ${resp} RequestsLibrary.Get Request session ${OPERATIONAL_NODES_API} Log ${resp.content} - Should Be Equal As Strings ${resp.status_code} 200 : FOR ${switch} IN RANGE 1 ${switches+1} \ Should Not Contain ${resp.content} "openflow:${switch}" @@ -513,3 +512,11 @@ Delete Flow Via Restconf Log ${resp.content} ${msg}= Set Variable Delete flow for ${CONFIG_NODES_API}/node/openflow:${node_id}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received. Should Be Equal As Strings ${resp.status_code} 200 msg=${msg} + +Get Flow Id + [Arguments] ${dpnid} ${table_id} ${flow_element} + [Documentation] This verifies specific flow-id for particular table-id matching from the flow element + ${resp} = RequestsLibrary.Get Request session ${CONFIG_NODES_API}/node/openflow:${dpnid}/table/${table_id} + BuiltIn.Log ${resp.content} + @{flow_id} = String.Get Regexp Matches ${resp.content} id\":\"(\\d+${flow_element}) 1 + [Return] @{flow_id}[0]