![]() |
Open Kilda Java Documentation
|
Public Member Functions | |
ResponseEntity< FlowPayload > | createFlow (@RequestBody FlowPayload flow) |
ResponseEntity< FlowPayload > | getFlow (@PathVariable(name="flow-id") String flowId) |
ResponseEntity< FlowPayload > | deleteFlow (@PathVariable(name="flow-id") String flowId) |
ResponseEntity< FlowPayload > | updateFlow ( @PathVariable(name="flow-id") String flowId, @RequestBody FlowPayload flow) |
ResponseEntity< List< FlowPayload > > | getFlows () |
ResponseEntity< List< FlowPayload > > | deleteFlows ( @RequestHeader(value=EXTRA_AUTH, defaultValue="0") long extraAuth) |
ResponseEntity< FlowIdStatusPayload > | statusFlow (@PathVariable(name="flow-id") String flowId) |
ResponseEntity< FlowPathPayload > | pathFlow (@PathVariable(name="flow-id") String flowId) |
BatchResults | pushFlows ( @RequestBody List< FlowInfoData > externalFlows, @ApiParam(value="default: false. If true, this will propagate rules to the switches.", required=false) @RequestParam(value="propagate", required=false) Optional< Boolean > propagate, @ApiParam(value="default: false. If true, will wait until poll timeout for validation.", required=false) @RequestParam("verify") Optional< Boolean > verify) |
BatchResults | unpushFlows ( @RequestBody List< FlowInfoData > externalFlows, @ApiParam(value="default: false. If true, this will propagate rules to the switches.", required=false) @RequestParam(value="propagate", required=false) Optional< Boolean > propagate, @ApiParam(value="default: false. If true, will wait until poll timeout for validation.", required=false) @RequestParam(value="verify", required=false) Optional< Boolean > verify) |
FlowReroutePayload | rerouteFlow (@PathVariable("flow_id") String flowId) |
FlowReroutePayload | syncFlow (@PathVariable("flow_id") String flowId) |
ResponseEntity< List< FlowValidationDto > > | validateFlow (@PathVariable("flow_id") String flowId) |
VerificationOutput | verifyFlow ( @RequestBody VerificationInput payload, @PathVariable("flow_id") String flowId) |
FlowCacheSyncResults | syncFlowCache () |
FlowCacheSyncResults | invalidateFlowCache () |
FlowCacheSyncResults | refreshFlowCache () |
REST Controller for flow requests.
Definition at line 79 of file FlowController.java.
ResponseEntity<FlowPayload> org.openkilda.northbound.controller.FlowController.createFlow | ( | @RequestBody FlowPayload | flow | ) |
Creates new flow.
flow | flow |
Definition at line 103 of file FlowController.java.
ResponseEntity<FlowPayload> org.openkilda.northbound.controller.FlowController.deleteFlow | ( | @PathVariable(name="flow-id") String | flowId | ) |
Deletes flow.
flowId | flow id |
Definition at line 135 of file FlowController.java.
ResponseEntity<List<FlowPayload> > org.openkilda.northbound.controller.FlowController.deleteFlows | ( | @RequestHeader(value=EXTRA_AUTH, defaultValue="0") long | extraAuth | ) |
Delete all flows.
Definition at line 189 of file FlowController.java.
ResponseEntity<FlowPayload> org.openkilda.northbound.controller.FlowController.getFlow | ( | @PathVariable(name="flow-id") String | flowId | ) |
ResponseEntity<List<FlowPayload> > org.openkilda.northbound.controller.FlowController.getFlows | ( | ) |
Dumps all flows. Dumps all flows with specific status if specified.
Definition at line 170 of file FlowController.java.
FlowCacheSyncResults org.openkilda.northbound.controller.FlowController.invalidateFlowCache | ( | ) |
Invalidate (purge) the flow cache and initialize it with DB data.
Definition at line 391 of file FlowController.java.
ResponseEntity<FlowPathPayload> org.openkilda.northbound.controller.FlowController.pathFlow | ( | @PathVariable(name="flow-id") String | flowId | ) |
Gets flow path.
flowId | flow id |
Definition at line 231 of file FlowController.java.
BatchResults org.openkilda.northbound.controller.FlowController.pushFlows | ( | @RequestBody List< FlowInfoData > | externalFlows, |
@ApiParam(value="default: false. If true, this will propagate rules to the switches.", required=false) @RequestParam(value="propagate", required=false) Optional< Boolean > | propagate, | ||
@ApiParam(value="default: false. If true, will wait until poll timeout for validation.", required=false) @RequestParam("verify") Optional< Boolean > | verify | ||
) |
Push flows to kilda ... this can be used to get flows into kilda without kilda creating them itself. Kilda won't expect to create them .. it may (and should) validate them at some stage.
externalFlows | a list of flows to push to kilda for it to absorb without expectation of creating the flow rules |
Definition at line 251 of file FlowController.java.
FlowCacheSyncResults org.openkilda.northbound.controller.FlowController.refreshFlowCache | ( | ) |
Refresh (synchronize) the flow cache with DB data.
Definition at line 403 of file FlowController.java.
FlowReroutePayload org.openkilda.northbound.controller.FlowController.rerouteFlow | ( | @PathVariable("flow_id") String | flowId | ) |
Initiates flow rerouting if any shorter paths are available.
flowId | id of flow to be rerouted. |
Definition at line 302 of file FlowController.java.
ResponseEntity<FlowIdStatusPayload> org.openkilda.northbound.controller.FlowController.statusFlow | ( | @PathVariable(name="flow-id") String | flowId | ) |
Gets flow status.
flowId | flow id |
Definition at line 216 of file FlowController.java.
FlowReroutePayload org.openkilda.northbound.controller.FlowController.syncFlow | ( | @PathVariable("flow_id") String | flowId | ) |
Initiates flow synchronization (reinstalling). In other words it means flow update with newly generated rules.
flowId | id of flow to be rerouted. |
Definition at line 318 of file FlowController.java.
FlowCacheSyncResults org.openkilda.northbound.controller.FlowController.syncFlowCache | ( | ) |
Make sure any Flow caches are in sync with the DB. This is primarily a janitor primitive.
Definition at line 379 of file FlowController.java.
BatchResults org.openkilda.northbound.controller.FlowController.unpushFlows | ( | @RequestBody List< FlowInfoData > | externalFlows, |
@ApiParam(value="default: false. If true, this will propagate rules to the switches.", required=false) @RequestParam(value="propagate", required=false) Optional< Boolean > | propagate, | ||
@ApiParam(value="default: false. If true, will wait until poll timeout for validation.", required=false) @RequestParam(value="verify", required=false) Optional< Boolean > | verify | ||
) |
Unpush flows to kilda ... essentially the opposite of push.
externalFlows | a list of flows to unpush without propagation to Floodlight |
Definition at line 278 of file FlowController.java.
ResponseEntity<FlowPayload> org.openkilda.northbound.controller.FlowController.updateFlow | ( | @PathVariable(name="flow-id") String | flowId, |
@RequestBody FlowPayload | flow | ||
) |
Updates existing flow.
flow | flow |
flowId | flow id |
Definition at line 153 of file FlowController.java.
ResponseEntity<List<FlowValidationDto> > org.openkilda.northbound.controller.FlowController.validateFlow | ( | @PathVariable("flow_id") String | flowId | ) |
Compares the Flow from the DB to what is on each switch.
flowId | id of flow to be rerouted. |
Definition at line 333 of file FlowController.java.
VerificationOutput org.openkilda.northbound.controller.FlowController.verifyFlow | ( | @RequestBody VerificationInput | payload, |
@PathVariable("flow_id") String | flowId | ||
) |
Verify flow integrity by sending "ping" package over flow path.
Definition at line 361 of file FlowController.java.