+ [Arguments] ${json_body_get} ${timeout} ${flow_count} ${controller_index_list}=${EMPTY}
+ ${index_list}= ClusterManagement.List Indices Or All given_list=${controller_index_list}
+ FOR ${index} IN @{index_list}
+ Get Bulk Flow ${json_body_get} ${index}
+ END
+ FOR ${index} IN @{index_list}
+ Wait Until Read Finishes ${index} ${timeout}
+ END
+ FOR ${index} IN @{index_list}
+ Verify Flow Count ${flow_count} ${index}
+ END
+
+Set DPN And Flow Count In Json Add
+ [Documentation] Set new DPN count and flows count per DPN in the Bulkomatic Add json file.
+ [Arguments] ${json_config} ${dpn_count} ${flows_count}
+ ${body}= OperatingSystem.Get File ${CURDIR}/../variables/openflowplugin/${json_config}
+ ${get_string}= Set Variable "sal-bulk-flow:dpn-count" : "1"
+ ${put_string}= Set Variable "sal-bulk-flow:dpn-count" : "${dpn_count}"
+ ${str}= Replace String Using Regexp ${body} ${get_string} ${put_string}
+ ${get_string}= Set Variable "sal-bulk-flow:flows-per-dpn" : "1000"
+ ${put_string}= Set Variable "sal-bulk-flow:flows-per-dpn" : "${flows_count}"
+ ${json_body_add}= Replace String Using Regexp ${str} ${get_string} ${put_string}
+ ${get_string}= Set Variable "sal-bulk-flow:batch-size" : "1"
+ ${put_string}= Set Variable "sal-bulk-flow:batch-size" : "${flows_count}"
+ ${json_body_add}= Replace String Using Regexp ${json_body_add} ${get_string} ${put_string}
+ Log ${json_body_add}
+ RETURN ${json_body_add}
+
+Set DPN And Flow Count In Json Get
+ [Documentation] Set new DPN count and flows count per DPN in the Bulkomatic Get json file.
+ [Arguments] ${json_config} ${dpn_count} ${flows_count}
+ ${body}= OperatingSystem.Get File ${CURDIR}/../variables/openflowplugin/${json_config}
+ ${get_string}= Set Variable "sal-bulk-flow:dpn-count" : "1"
+ ${put_string}= Set Variable "sal-bulk-flow:dpn-count" : "${dpn_count}"
+ ${str}= Replace String Using Regexp ${body} ${get_string} ${put_string}
+ ${get_string}= Set Variable "sal-bulk-flow:flows-per-dpn" : "1000"
+ ${put_string}= Set Variable "sal-bulk-flow:flows-per-dpn" : "${flows_count}"
+ ${json_body_get}= Replace String Using Regexp ${str} ${get_string} ${put_string}
+ Log ${json_body_get}
+ RETURN ${json_body_get}
+
+Set DPN And Flow Count In Json Del
+ [Documentation] Set new DPN count and flows count per DPN in the Bulkomatic Del json file.
+ [Arguments] ${json_config} ${dpn_count} ${flows_count}
+ ${body}= OperatingSystem.Get File ${CURDIR}/../variables/openflowplugin/${json_config}
+ ${get_string}= Set Variable "sal-bulk-flow:dpn-count" : "1"
+ ${put_string}= Set Variable "sal-bulk-flow:dpn-count" : "${dpn_count}"
+ ${str}= Replace String Using Regexp ${body} ${get_string} ${put_string}
+ ${get_string}= Set Variable "sal-bulk-flow:flows-per-dpn" : "1000"
+ ${put_string}= Set Variable "sal-bulk-flow:flows-per-dpn" : "${flows_count}"
+ ${json_body_del}= Replace String Using Regexp ${str} ${get_string} ${put_string}
+ ${get_string}= Set Variable "sal-bulk-flow:batch-size" : "1"
+ ${put_string}= Set Variable "sal-bulk-flow:batch-size" : "${flows_count}"
+ ${json_body_del}= Replace String Using Regexp ${json_body_del} ${get_string} ${put_string}
+ Log ${json_body_del}
+ RETURN ${json_body_del}