Open Kilda Java Documentation
org.openkilda.testing.tools.IslUtils Class Reference

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)
 

Detailed Description

Definition at line 45 of file IslUtils.java.

Member Function Documentation

◆ getIslInfo() [1/2]

IslInfoData org.openkilda.testing.tools.IslUtils.getIslInfo ( Isl  isl)

Gets actual Northbound represenation of the certain ISL.

Parameters
islisl to search in 'getAllLinks' results
Returns
found isl. Throw otherwise.

Definition at line 85 of file IslUtils.java.

◆ getIslInfo() [2/2]

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.

Parameters
islsInfolist where to search certain ISL
islwhat isl to look for
Returns
IslInfoData object that matches passed Isl. Throw if no results.

Definition at line 97 of file IslUtils.java.

◆ replug()

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.

Parameters
srcIslThe initial ISL which is going to be replugged. Should go through a-switch!
replugSourcereplug source or destination end of the ISL
dstIslThe destination 'isl'. Usually a free link, which is connected to a-switch at one end
plugIntoSourceWhether to connect to src or dst end of the dstIsl. Usually src end for not-connected ISLs
Returns
New ISL which is expected to be discovered after the replug.

Definition at line 130 of file IslUtils.java.

◆ reverseIsl()

Isl org.openkilda.testing.tools.IslUtils.reverseIsl ( Isl  isl)

Returns 'reverse' version of the passed ISL.

Parameters
islisl to reverse

Definition at line 112 of file IslUtils.java.

◆ waitForIslStatus() [1/2]

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

Parameters
islswhich isls should have the specified status
expectedStatuswhich status to wait on specified isls

Definition at line 60 of file IslUtils.java.

◆ waitForIslStatus() [2/2]

void org.openkilda.testing.tools.IslUtils.waitForIslStatus ( List< Isl >  isls,
String  expectedStatus 
)

Definition at line 75 of file IslUtils.java.


The documentation for this class was generated from the following file: