Remove ODL_STREAM from VtnCoKeywords.robot
[integration/test.git] / csit / libraries / CompareStream.robot
index c85b40171eb6d86ed244530d466c9f30cb2b4f8f..f9a6cb4c6d4bc8670c5b6aced06ede64be3975c9 100644 (file)
@@ -124,6 +124,12 @@ Run_Keyword_If_More_Than
     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
     BuiltIn.Run_Keyword_And_Return_If    &{Stream_dict}[${ODL_STREAM}] > &{Stream_dict}[${lower_bound}]    ${kw_name}    @{varargs}    &{kwargs}
 
+Run_Keyword_If_Equals
+    [Arguments]    ${stream}    ${kw_name}    @{varargs}    &{kwargs}
+    [Documentation]    Compare ${stream} to ${ODL_STREAM} and in case ${ODL_STREAM} equals ${stream},
+    ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
+    BuiltIn.Run_Keyword_And_Return_If    &{Stream_dict}[${ODL_STREAM}] == &{Stream_dict}[${stream}]    ${kw_name}    @{varargs}    &{kwargs}
+
 Run_Keyword_If_Less_Than
     [Arguments]    ${lower_bound}    ${kw_name}    @{varargs}    &{kwargs}
     [Documentation]    Compare ${lower_bound} to ${ODL_STREAM} and in case ${ODL_STREAM} is less than ${lower_bound},