*** Variables ***
*** Keywords ***
+Check Flow Stats Are Available
+ [Arguments] ${node_id}
+ [Documentation] A GET on the /node/${node_id} inventory API is made and flow stats string is checked for existence.
+ ${resp} RequestsLibrary.Get Request session ${OPERATIONAL_NODES_API}/node/${node_id}
+ Log ${resp.content}
+ Should Be Equal As Strings ${resp.status_code} 200
+ Should Contain ${resp.content} flow-statistics
+
Create Inventory Flow
[Documentation] Calls FlowLib.Make_Inventory_Flow function and initializes and sanitizes
... the basic flow elements that can be given to flow:inventory
\ Create Flow Variables For Suite From XML File ${XmlsDir}/${flowfile}
\ Run Keyword And Continue On Failure Add Flow Via Restconf ${switch_idx} ${table_id} ${data}
# Lets wait for ofp to collect stats
- Sleep 3s
+ Wait Until Keyword Succeeds 10s 2s FlowLib.Check Flow Stats Are Available openflow:1
# Show switch content (for debug purposes if needed)
Write dpctl dump-flows -O OpenFlow13
Read Until mininet>
\ Create Flow Variables For Suite From XML File ${XmlsDir}/${flowfile}
\ Run Keyword And Continue On Failure Add Flow Via RPC ${switch_idx} ${xmlroot}
# Lets wait for ofp to collect stats
- Sleep 3s
+ Wait Until Keyword Succeeds 10s 2s FlowLib.Check Flow Stats Are Available openflow:1
# Show switch content (for debug purposes if needed)
Write dpctl dump-flows -O OpenFlow13
Read Until mininet>