+
+Check Flow Stats Are Not Frozen
+ [Arguments] ${member_index}=1 ${period_in_seconds}=5
+ [Documentation] Verify flow stats are not frozen for flow 1 and switch 1.
+ ${duration_1} = Extract Flow Duration ${member_index}
+ ${duration_1} Builtin.Convert To Integer ${duration_1}
+ BuiltIn.Sleep ${period_in_seconds}
+ ${duration_2} = Extract Flow Duration ${member_index}
+ ${duration_2} Builtin.Convert To Integer ${duration_2}
+ Should Not Be Equal As Integers ${duration_1} ${duration_2}
+
+Extract Flow Duration
+ [Arguments] ${member_index}
+ [Documentation] Extract duration for flow 1 in switch 1.
+ ${session} = Resolve_Http_Session_For_Member member_index=${member_index}
+ ${resp} RequestsLibrary.Get Request ${session} ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/flow/1 headers=${headers}
+ Log ${resp.content}
+ ${json_resp} = RequestsLibrary.To_Json ${resp.content}
+ ${flow_list} = Collections.Get_From_Dictionary ${json_resp} flow-node-inventory:flow
+ ${flow_stats} = Collections.Get_From_Dictionary @{flow_list}[0] opendaylight-flow-statistics:flow-statistics
+ ${duration} = Collections.Get_From_Dictionary &{flow_stats}[duration] second
+ Return From Keyword ${duration}