Open Kilda Java Documentation
org.openkilda.topo.builders.TestTopologyBuilder Class Reference

Classes

class  TreeBuilder
 

Static Public Member Functions

static final Topology buildTopoFromTestJson (String jsonDoc)
 
static final Topology buildLinearTopo (int numSwitches)
 
static String intToSwitchId (int i)
 
static final Topology buildTreeTopo (int depth, int fanout)
 
static final Topology buildTorusTopo ()
 

Detailed Description

TestTopologyBuilder is a utility / factory class that can be used to build topologies for tests.

Definition at line 38 of file TestTopologyBuilder.java.

Member Function Documentation

◆ 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
jsonDocA 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

buildTorusTopo models the Torus topology from Mininet

Definition at line 162 of file TestTopologyBuilder.java.

◆ buildTreeTopo()

static final Topology org.openkilda.topo.builders.TestTopologyBuilder.buildTreeTopo ( int  depth,
int  fanout 
)
static

buildTreeTopo models the Tree topology from Mininet

Definition at line 155 of file TestTopologyBuilder.java.

◆ intToSwitchId()

static String org.openkilda.topo.builders.TestTopologyBuilder.intToSwitchId ( int  i)
static

Definition at line 134 of file TestTopologyBuilder.java.


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