![]() |
Open Kilda Java Documentation
|
Public Member Functions | |
List< SwitchDto > | getSwitches () |
SwitchFlowEntries | getSwitchRules ( @PathVariable("switch-id") SwitchId switchId, @ApiParam(value="Results will be filtered based on matching the cookie.", required=false) @RequestParam(value="cookie", required=false) Optional< Long > cookie) |
ResponseEntity< List< Long > > | deleteSwitchRules ( @PathVariable("switch-id") SwitchId switchId, @ApiParam(value="default: IGNORE_DEFAULTS. Can be one of DeleteRulesAction: "+"DROP_ALL,DROP_ALL_ADD_DEFAULTS,IGNORE_DEFAULTS,OVERWRITE_DEFAULTS,"+"REMOVE_DROP,REMOVE_BROADCAST,REMOVE_UNICAST,REMOVE_DEFAULTS,REMOVE_ADD_DEFAULTS", required=false) @RequestParam(value="delete-action", required=false) Optional< DeleteRulesAction > deleteAction, @RequestParam(value="cookie", required=false) Optional< Long > cookie, @RequestParam(value="in-port", required=false) Optional< Integer > inPort, @RequestParam(value="in-vlan", required=false) Optional< Integer > inVlan, @RequestParam(value="priority", required=false) Optional< Integer > priority, @RequestParam(value="out-port", required=false) Optional< Integer > outPort) |
ResponseEntity< List< Long > > | installSwitchRules ( @PathVariable("switch-id") SwitchId switchId, @ApiParam(value="default: INSTALL_DEFAULTS. Can be one of InstallRulesAction: "+" INSTALL_DROP,INSTALL_BROADCAST,INSTALL_UNICAST,INSTALL_DEFAULTS", required=false) @RequestParam(value="install-action", required=false) Optional< InstallRulesAction > installAction) |
ResponseEntity< ConnectModeRequest.Mode > | toggleSwitchConnectMode ( @RequestParam("mode") ConnectModeRequest.Mode mode) |
RulesValidationResult | validateRules (@PathVariable(name="switch_id") SwitchId switchId) |
RulesSyncResult | syncRules (@PathVariable(name="switch_id") SwitchId switchId) |
DeleteMeterResult | deleteMeter (@PathVariable(name="switch_id") SwitchId switchId, @PathVariable(name="meter_id") long meterId) |
PortDto | configurePort ( @PathVariable(name="switch_id") SwitchId switchId, @PathVariable(name="port_no") int portNo, @RequestBody PortConfigurationPayload portConfig) |
REST Controller for switches.
Definition at line 77 of file SwitchController.java.
PortDto org.openkilda.northbound.controller.SwitchController.configurePort | ( | @PathVariable(name="switch_id") SwitchId | switchId, |
@PathVariable(name="port_no") int | portNo, | ||
@RequestBody PortConfigurationPayload | portConfig | ||
) |
Configure port.
switchId | the switch id |
portNo | the port no |
portConfig | the port configuration payload |
Definition at line 271 of file SwitchController.java.
DeleteMeterResult org.openkilda.northbound.controller.SwitchController.deleteMeter | ( | @PathVariable(name="switch_id") SwitchId | switchId, |
@PathVariable(name="meter_id") long | meterId | ||
) |
Remove the meter from specific switch.
switchId | switch dpid. |
meterId | id of the meter to be deleted. |
Definition at line 254 of file SwitchController.java.
ResponseEntity<List<Long> > org.openkilda.northbound.controller.SwitchController.deleteSwitchRules | ( | @PathVariable("switch-id") SwitchId | switchId, |
@ApiParam(value="default: IGNORE_DEFAULTS. Can be one of DeleteRulesAction: "+"DROP_ALL,DROP_ALL_ADD_DEFAULTS,IGNORE_DEFAULTS,OVERWRITE_DEFAULTS,"+"REMOVE_DROP,REMOVE_BROADCAST,REMOVE_UNICAST,REMOVE_DEFAULTS,REMOVE_ADD_DEFAULTS", required=false) @RequestParam(value="delete-action", required=false) Optional< DeleteRulesAction > | deleteAction, | ||
@RequestParam(value="cookie", required=false) Optional< Long > | cookie, | ||
@RequestParam(value="in-port", required=false) Optional< Integer > | inPort, | ||
@RequestParam(value="in-vlan", required=false) Optional< Integer > | inVlan, | ||
@RequestParam(value="priority", required=false) Optional< Integer > | priority, | ||
@RequestParam(value="out-port", required=false) Optional< Integer > | outPort | ||
) |
Delete switch rules.
switchId | switch id to delete rules from |
deleteAction | defines what to do about the default rules |
cookie | the cookie to use if deleting a rule (could be any rule) |
inPort | the in port to use if deleting a rule |
inVlan | the in vlan to use if deleting a rule |
outPort | the out port to use if deleting a rule |
Definition at line 134 of file SwitchController.java.
List<SwitchDto> org.openkilda.northbound.controller.SwitchController.getSwitches | ( | ) |
SwitchFlowEntries org.openkilda.northbound.controller.SwitchController.getSwitchRules | ( | @PathVariable("switch-id") SwitchId | switchId, |
@ApiParam(value="Results will be filtered based on matching the cookie.", required=false) @RequestParam(value="cookie", required=false) Optional< Long > | cookie | ||
) |
Get switch rules.
switchId | the switch |
cookie | filter the response based on this cookie |
Definition at line 107 of file SwitchController.java.
ResponseEntity<List<Long> > org.openkilda.northbound.controller.SwitchController.installSwitchRules | ( | @PathVariable("switch-id") SwitchId | switchId, |
@ApiParam(value="default: INSTALL_DEFAULTS. Can be one of InstallRulesAction: "+" INSTALL_DROP,INSTALL_BROADCAST,INSTALL_UNICAST,INSTALL_DEFAULTS", required=false) @RequestParam(value="install-action", required=false) Optional< InstallRulesAction > | installAction | ||
) |
Install switch rules.
switchId | switch id to delete rules from |
installAction | defines what to do about the default rules |
Definition at line 188 of file SwitchController.java.
RulesSyncResult org.openkilda.northbound.controller.SwitchController.syncRules | ( | @PathVariable(name="switch_id") SwitchId | switchId | ) |
Synchronize (install) missing flows that should be on the switch but exist only in neo4j.
Definition at line 241 of file SwitchController.java.
ResponseEntity<ConnectModeRequest.Mode> org.openkilda.northbound.controller.SwitchController.toggleSwitchConnectMode | ( | @RequestParam("mode") ConnectModeRequest.Mode | mode | ) |
Toggle the global behavior of Floodlight when the switch connects:
mode | the connectMode to use. A Null value is a No-Op and can be used to return existing value. |
Definition at line 215 of file SwitchController.java.
RulesValidationResult org.openkilda.northbound.controller.SwitchController.validateRules | ( | @PathVariable(name="switch_id") SwitchId | switchId | ) |
Validate the rules installed on the switch against the flows in Neo4J.
Definition at line 229 of file SwitchController.java.