TestTopologyBuilder is a utility / factory class that can be used to build topologies for tests.
Definition at line 38 of file TestTopologyBuilder.java.
◆ buildLinearTopo()
static final Topology org.openkilda.topo.builders.TestTopologyBuilder.buildLinearTopo |
( |
int |
numSwitches | ) |
|
|
static |
buildLinearTopo models the Linear topology from Mininet
Also, use names / ids similar to how mininet uses them
Definition at line 114 of file TestTopologyBuilder.java.
◆ buildTopoFromTestJson()
static final Topology org.openkilda.topo.builders.TestTopologyBuilder.buildTopoFromTestJson |
( |
String |
jsonDoc | ) |
|
|
static |
This implements the ability to translate a test topology into a Topology object
- Parameters
-
jsonDoc | A JSON doc that matches the syntax of the json files in test/resources/topology |
- Returns
- The topology represented in the text file.
Definition at line 46 of file TestTopologyBuilder.java.
◆ buildTorusTopo()
static final Topology org.openkilda.topo.builders.TestTopologyBuilder.buildTorusTopo |
( |
| ) |
|
|
static |
◆ buildTreeTopo()
static final Topology org.openkilda.topo.builders.TestTopologyBuilder.buildTreeTopo |
( |
int |
depth, |
|
|
int |
fanout |
|
) |
| |
|
static |
◆ intToSwitchId()
static String org.openkilda.topo.builders.TestTopologyBuilder.intToSwitchId |
( |
int |
i | ) |
|
|
static |
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/topo/builders/TestTopologyBuilder.java