Open Kilda Java Documentation
org.openkilda.SwitchesUtils Class Reference

Static Public Member Functions

static boolean knockoutSwitch (String switchName)
 
static boolean reviveSwitch (String switchName)
 
static List< SwitchDtodumpSwitches ()
 
static boolean addSwitch (String switchName, String dpid)
 
static List< Long > deleteSwitchRules (String switchId, DeleteRulesAction deleteAction)
 
static List< Long > deleteSwitchRules (String switchId, Integer inPort, Integer inVlan)
 
static List< Long > deleteSwitchRules (String switchId, Integer outPort)
 
static List< Long > deleteSwitchRules (String switchId, DeleteRulesAction deleteAction, Integer inPort, Integer inVlan, Integer outPort)
 
static List< FlowEntrydumpSwitchRules (String switchId)
 
static RulesValidationResult validateSwitchRules (String switchId)
 
static RulesSyncResult synchronizeSwitchRules (String switchId)
 
static PortDto changeSwitchPortStatus (String switchName, int port, PortStatus status)
 

Detailed Description

Definition at line 38 of file SwitchesUtils.java.

Member Function Documentation

◆ addSwitch()

static boolean org.openkilda.SwitchesUtils.addSwitch ( String  switchName,
String  dpid 
)
static

Adds new switch into mininet topology.

Parameters
switchNameswitch name.
dpiddata path id.
Returns
true if switch was added successfully, otherwise - false.

Definition at line 131 of file SwitchesUtils.java.

◆ changeSwitchPortStatus()

static PortDto org.openkilda.SwitchesUtils.changeSwitchPortStatus ( String  switchName,
int  port,
PortStatus  status 
)
static

Update port status.

Definition at line 308 of file SwitchesUtils.java.

◆ deleteSwitchRules() [1/4]

static List<Long> org.openkilda.SwitchesUtils.deleteSwitchRules ( String  switchId,
DeleteRulesAction  deleteAction 
)
static

Definition at line 146 of file SwitchesUtils.java.

◆ deleteSwitchRules() [2/4]

static List<Long> org.openkilda.SwitchesUtils.deleteSwitchRules ( String  switchId,
Integer  inPort,
Integer  inVlan 
)
static

Definition at line 150 of file SwitchesUtils.java.

◆ deleteSwitchRules() [3/4]

static List<Long> org.openkilda.SwitchesUtils.deleteSwitchRules ( String  switchId,
Integer  outPort 
)
static

Definition at line 154 of file SwitchesUtils.java.

◆ deleteSwitchRules() [4/4]

static List<Long> org.openkilda.SwitchesUtils.deleteSwitchRules ( String  switchId,
DeleteRulesAction  deleteAction,
Integer  inPort,
Integer  inVlan,
Integer  outPort 
)
static

Delete switch rules through Northbound service.

Definition at line 161 of file SwitchesUtils.java.

◆ dumpSwitches()

static List<SwitchDto> org.openkilda.SwitchesUtils.dumpSwitches ( )
static

Returns Switches through Topology-Engine-Rest service.

Returns
The JSON document of all flows

Definition at line 95 of file SwitchesUtils.java.

◆ dumpSwitchRules()

static List<FlowEntry> org.openkilda.SwitchesUtils.dumpSwitchRules ( String  switchId)
static

Returns rules of a switch (via Northbound service).

Definition at line 212 of file SwitchesUtils.java.

◆ knockoutSwitch()

static boolean org.openkilda.SwitchesUtils.knockoutSwitch ( String  switchName)
static

Turns off switch.

Parameters
switchNameswitch name.
Returns
true if result is success.

Definition at line 52 of file SwitchesUtils.java.

◆ reviveSwitch()

static boolean org.openkilda.SwitchesUtils.reviveSwitch ( String  switchName)
static

Turns on switch.

Parameters
switchNameswitch name.
Returns
true if result is success.

Definition at line 73 of file SwitchesUtils.java.

◆ synchronizeSwitchRules()

static RulesSyncResult org.openkilda.SwitchesUtils.synchronizeSwitchRules ( String  switchId)
static

Synchronize rules of a switch with the flows in Neo4J (via Northbound service).

Definition at line 276 of file SwitchesUtils.java.

◆ validateSwitchRules()

static RulesValidationResult org.openkilda.SwitchesUtils.validateSwitchRules ( String  switchId)
static

Validate rules of a switch against the flows in Neo4J (via Northbound service).

Definition at line 244 of file SwitchesUtils.java.


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