Definition at line 74 of file FlowUtils.java.
◆ cleanupFlows()
static void org.openkilda.flow.FlowUtils.cleanupFlows |
( |
| ) |
|
|
static |
◆ clientFactory()
static Client org.openkilda.flow.FlowUtils.clientFactory |
( |
| ) |
|
|
static |
◆ deleteFlow()
static FlowPayload org.openkilda.flow.FlowUtils.deleteFlow |
( |
final String |
flowId | ) |
|
|
static |
Deletes flow through Northbound service.
- Parameters
-
- Returns
- The JSON document of the specified flow
Definition at line 238 of file FlowUtils.java.
◆ deleteFlowViaTe()
static boolean org.openkilda.flow.FlowUtils.deleteFlowViaTe |
( |
final String |
flowId | ) |
|
|
static |
Deletes flow through TopologyEngine service.
Definition at line 720 of file FlowUtils.java.
◆ dumpFlows()
static List<Flow> org.openkilda.flow.FlowUtils.dumpFlows |
( |
| ) |
|
|
static |
Returns flows through Topology-Engine-Rest service.
- Returns
- The JSON document of all flows
Definition at line 444 of file FlowUtils.java.
◆ getFlow()
static FlowPayload org.openkilda.flow.FlowUtils.getFlow |
( |
final String |
flowId | ) |
|
|
static |
Gets flow through Northbound service.
- Parameters
-
- Returns
- The JSON document of the specified flow
Definition at line 126 of file FlowUtils.java.
◆ getFlowDump()
static List<FlowPayload> org.openkilda.flow.FlowUtils.getFlowDump |
( |
| ) |
|
|
static |
Gets flows dump through Northbound service.
- Returns
- The JSON document of the dump flows
Definition at line 409 of file FlowUtils.java.
◆ getFlowName()
static String org.openkilda.flow.FlowUtils.getFlowName |
( |
final String |
flowId | ) |
|
|
static |
Builds flow name by flow id.
- Parameters
-
- Returns
- flow name
Definition at line 595 of file FlowUtils.java.
◆ getFlowPath() [1/2]
static FlowPathPayload org.openkilda.flow.FlowUtils.getFlowPath |
( |
final String |
flowId | ) |
|
|
static |
Gets flow path through Northbound service.
- Parameters
-
- Returns
- The JSON document of the specified flow path
Definition at line 275 of file FlowUtils.java.
◆ getFlowPath() [2/2]
Fetch flow's path directly from PathComputer.
- Parameters
-
- Returns
- flow path
Definition at line 311 of file FlowUtils.java.
◆ getFlowStatus()
Gets flow status through Northbound service.
- Parameters
-
- Returns
- The JSON document of the specified flow status
Definition at line 367 of file FlowUtils.java.
◆ getHealthCheck()
static int org.openkilda.flow.FlowUtils.getHealthCheck |
( |
| ) |
|
|
static |
◆ getLinkBandwidth()
static Integer org.openkilda.flow.FlowUtils.getLinkBandwidth |
( |
final SwitchId |
srcSwitch, |
|
|
final String |
srcPort |
|
) |
| |
|
static |
Returns link available bandwidth through Topology-Engine-Rest service.
- Returns
- The JSON document of all flows
Definition at line 478 of file FlowUtils.java.
◆ getTimeDuration()
static double org.openkilda.flow.FlowUtils.getTimeDuration |
( |
final long |
current | ) |
|
|
static |
Returns timestamp difference.
- Parameters
-
- Returns
- timestamp difference
Definition at line 605 of file FlowUtils.java.
◆ invalidateFlowCache()
Perform the flow cache invalidation (via Northbound service).
Definition at line 691 of file FlowUtils.java.
◆ isTrafficTestsEnabled()
static boolean org.openkilda.flow.FlowUtils.isTrafficTestsEnabled |
( |
| ) |
|
|
static |
◆ pushFlow()
static BatchResults org.openkilda.flow.FlowUtils.pushFlow |
( |
FlowInfoData |
flowInfo, |
|
|
boolean |
propagate |
|
) |
| throws JsonProcessingException |
|
static |
Push a flow through Northbound service.
- Parameters
-
flowInfo | the flow definition |
propagate | whether propagate data to switches or not |
- Returns
- the result of the push operation
Definition at line 786 of file FlowUtils.java.
◆ putFlow()
Creates flow through Northbound service.
- Parameters
-
- Returns
- The JSON document of the created flow
Definition at line 163 of file FlowUtils.java.
◆ restoreFlows()
static void org.openkilda.flow.FlowUtils.restoreFlows |
( |
| ) |
|
|
static |
◆ syncFlowCache()
Perform the flow cache synchronization (via Northbound service).
Definition at line 660 of file FlowUtils.java.
◆ updateFeaturesStatus()
◆ updateFlow()
Updates flow through Northbound service.
- Parameters
-
flowId | flow id |
payload | flow JSON data |
- Returns
- The JSON document of the created flow
Definition at line 200 of file FlowUtils.java.
◆ validateFlow()
static List<FlowValidationDto> org.openkilda.flow.FlowUtils.validateFlow |
( |
final String |
flowId | ) |
|
|
static |
Validate the flow path and rules (e.g. whether properly installed).
Definition at line 750 of file FlowUtils.java.
◆ verifyFlow()
◆ waitFlowDeletion()
static void org.openkilda.flow.FlowUtils.waitFlowDeletion |
( |
String |
flowId | ) |
throws InterruptedException, FlowOperationException |
|
static |
call doGetFlowStatusRequest until it got success codes 2xx. If it got not 2xx code and not 404 code it raise error. If it get 404 code it ends successfully.
Definition at line 341 of file FlowUtils.java.
◆ waitFlowStatus()
Poll flow status via getFlowStatus calls until it become equal to expected. Or until timeout.
TODO: Why do we loop for 10 and sleep for 2? (ie why what for 20 seconds for flow state?)
- Returns
- last result received from getFlowStatus (can be null)
Definition at line 325 of file FlowUtils.java.
The documentation for this class was generated from the following file:
- /Users/kevin/Desktop/Kilda/open-kilda-develop/services/src/atdd/src/test/java/org/openkilda/flow/FlowUtils.java