![]() |
Open Kilda Java Documentation
|
Classes | |
class | ASwitch |
class | Isl |
class | OutPort |
enum | Status |
class | Switch |
class | TraffGen |
class | TraffGenConfig |
Public Member Functions | |
List< Switch > | getActiveSwitches () |
Set< SwitchId > | getSkippedSwitchIds () |
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) |
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.
|
static |
Creates TopologyDefinition instance.
Definition at line 65 of file TopologyDefinition.java.
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.
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.
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.
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.
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.
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.