|
static boolean | knockoutSwitch (String switchName) |
|
static boolean | reviveSwitch (String switchName) |
|
static List< SwitchDto > | dumpSwitches () |
|
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< FlowEntry > | dumpSwitchRules (String switchId) |
|
static RulesValidationResult | validateSwitchRules (String switchId) |
|
static RulesSyncResult | synchronizeSwitchRules (String switchId) |
|
static PortDto | changeSwitchPortStatus (String switchName, int port, PortStatus status) |
|
Definition at line 38 of file SwitchesUtils.java.
◆ addSwitch()
static boolean org.openkilda.SwitchesUtils.addSwitch |
( |
String |
switchName, |
|
|
String |
dpid |
|
) |
| |
|
static |
Adds new switch into mininet topology.
- Parameters
-
switchName | switch name. |
dpid | data 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 |
◆ deleteSwitchRules() [1/4]
static List<Long> org.openkilda.SwitchesUtils.deleteSwitchRules |
( |
String |
switchId, |
|
|
DeleteRulesAction |
deleteAction |
|
) |
| |
|
static |
◆ deleteSwitchRules() [2/4]
static List<Long> org.openkilda.SwitchesUtils.deleteSwitchRules |
( |
String |
switchId, |
|
|
Integer |
inPort, |
|
|
Integer |
inVlan |
|
) |
| |
|
static |
◆ deleteSwitchRules() [3/4]
static List<Long> org.openkilda.SwitchesUtils.deleteSwitchRules |
( |
String |
switchId, |
|
|
Integer |
outPort |
|
) |
| |
|
static |
◆ deleteSwitchRules() [4/4]
static List<Long> org.openkilda.SwitchesUtils.deleteSwitchRules |
( |
String |
switchId, |
|
|
DeleteRulesAction |
deleteAction, |
|
|
Integer |
inPort, |
|
|
Integer |
inVlan, |
|
|
Integer |
outPort |
|
) |
| |
|
static |
◆ 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 |
◆ knockoutSwitch()
static boolean org.openkilda.SwitchesUtils.knockoutSwitch |
( |
String |
switchName | ) |
|
|
static |
Turns off switch.
- Parameters
-
- 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
-
- 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()
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:
- /Users/kevin/Desktop/Kilda/open-kilda-develop/services/src/atdd/src/test/java/org/openkilda/SwitchesUtils.java