![]() |
Open Kilda Java Documentation
|
Public Member Functions | |
void | waitForIslStatus (List< Isl > isls, String expectedStatus, RetryPolicy retryPolicy) |
void | waitForIslStatus (List< Isl > isls, String expectedStatus) |
IslInfoData | getIslInfo (Isl isl) |
IslInfoData | getIslInfo (List< IslInfoData > islsInfo, Isl isl) |
Isl | reverseIsl (Isl isl) |
TopologyDefinition.Isl | replug (TopologyDefinition.Isl srcIsl, boolean replugSource, TopologyDefinition.Isl dstIsl, boolean plugIntoSource) |
Definition at line 45 of file IslUtils.java.
IslInfoData org.openkilda.testing.tools.IslUtils.getIslInfo | ( | Isl | isl | ) |
Gets actual Northbound represenation of the certain ISL.
isl | isl to search in 'getAllLinks' results |
Definition at line 85 of file IslUtils.java.
IslInfoData org.openkilda.testing.tools.IslUtils.getIslInfo | ( | List< IslInfoData > | islsInfo, |
Isl | isl | ||
) |
Finds certain ISL in list of 'IslInfoData' objects. Passed ISL is our internal ISL representation, while IslInfoData is returned from NB.
islsInfo | list where to search certain ISL |
isl | what isl to look for |
Definition at line 97 of file IslUtils.java.
TopologyDefinition.Isl org.openkilda.testing.tools.IslUtils.replug | ( | TopologyDefinition.Isl | srcIsl, |
boolean | replugSource, | ||
TopologyDefinition.Isl | dstIsl, | ||
boolean | plugIntoSource | ||
) |
Simulates a physical ISL replug from one switch-port to another switch-port. Uses a-switch.
srcIsl | The initial ISL which is going to be replugged. Should go through a-switch! |
replugSource | replug source or destination end of the ISL |
dstIsl | The destination 'isl'. Usually a free link, which is connected to a-switch at one end |
plugIntoSource | Whether to connect to src or dst end of the dstIsl. Usually src end for not-connected ISLs |
Definition at line 130 of file IslUtils.java.
Isl org.openkilda.testing.tools.IslUtils.reverseIsl | ( | Isl | isl | ) |
Returns 'reverse' version of the passed ISL.
isl | isl to reverse |
Definition at line 112 of file IslUtils.java.
void org.openkilda.testing.tools.IslUtils.waitForIslStatus | ( | List< Isl > | isls, |
String | expectedStatus, | ||
RetryPolicy | retryPolicy | ||
) |
Waits until all passed isls have the specified status. Fails after defined timeout. Checks happen via Northbound API calls
isls | which isls should have the specified status |
expectedStatus | which status to wait on specified isls |
Definition at line 60 of file IslUtils.java.
void org.openkilda.testing.tools.IslUtils.waitForIslStatus | ( | List< Isl > | isls, |
String | expectedStatus | ||
) |
Definition at line 75 of file IslUtils.java.