Open Kilda Java Documentation
org.openkilda.testing.model.topology.TopologyDefinition Class Reference

Classes

class  ASwitch
 
class  Isl
 
class  OutPort
 
enum  Status
 
class  Switch
 
class  TraffGen
 
class  TraffGenConfig
 

Public Member Functions

List< Switch > getActiveSwitches ()
 
Set< SwitchIdgetSkippedSwitchIds ()
 
List< Isl > getIslsForActiveSwitches ()
 
List< Isl > getNotConnectedIsls ()
 
List< Integer > getAllowedPortsForSwitch (Switch sw)
 
List< TraffGen > getActiveTraffGens ()
 

Static Public Member Functions

static TopologyDefinition factory ( @JsonProperty("switches") List< Switch > switches, @JsonProperty("isls") List< Isl > isls, @JsonProperty("traffgens") List< TraffGen > traffGens, @JsonProperty("traffgen_config") TraffGenConfig traffGenConfig)
 

Detailed Description

Defines a topology with switches, links and traffgens.

Topology definition objects are immutable and can't be changed after creation.

Definition at line 50 of file TopologyDefinition.java.

Member Function Documentation

◆ factory()

static TopologyDefinition org.openkilda.testing.model.topology.TopologyDefinition.factory ( @JsonProperty("switches") List< Switch >  switches,
@JsonProperty("isls") List< Isl >  isls,
@JsonProperty("traffgens") List< TraffGen >  traffGens,
@JsonProperty("traffgen_config") TraffGenConfig  traffGenConfig 
)
static

Creates TopologyDefinition instance.

Definition at line 65 of file TopologyDefinition.java.

◆ getActiveSwitches()

List<Switch> org.openkilda.testing.model.topology.TopologyDefinition.getActiveSwitches ( )

Get all switches that are marked as active in config.

Definition at line 90 of file TopologyDefinition.java.

◆ getActiveTraffGens()

List<TraffGen> org.openkilda.testing.model.topology.TopologyDefinition.getActiveTraffGens ( )

Get all traffgens that are marked as 'active' in config.

Definition at line 307 of file TopologyDefinition.java.

◆ getAllowedPortsForSwitch()

List<Integer> org.openkilda.testing.model.topology.TopologyDefinition.getAllowedPortsForSwitch ( Switch  sw)

Get list of switch ports excluding the ports which are busy with ISLs.

Definition at line 130 of file TopologyDefinition.java.

◆ getIslsForActiveSwitches()

List<Isl> org.openkilda.testing.model.topology.TopologyDefinition.getIslsForActiveSwitches ( )

Get all ISLs for switches that are marked as active in config.

Definition at line 109 of file TopologyDefinition.java.

◆ getNotConnectedIsls()

List<Isl> org.openkilda.testing.model.topology.TopologyDefinition.getNotConnectedIsls ( )

Get list of ISLs that are connected only at one side (no destination switch). The other side is usually an a-switch.

Definition at line 120 of file TopologyDefinition.java.

◆ getSkippedSwitchIds()

Set<SwitchId> org.openkilda.testing.model.topology.TopologyDefinition.getSkippedSwitchIds ( )

Get all switches that are marked as skipped in config.

Definition at line 99 of file TopologyDefinition.java.


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