FlowDSL Node Catalog

Switch

Route the packet to one of N labeled branches based on a value.

Overview

PropertyValue
Node IDcore/switch
Kindrouter
Modulecore-flowdsl
Repogo-flowdsl
Handlergithub.com/redelay/go-flowdsl/nodes/core.Switch
Iconlucide:split
Color#f59e0b
Tagscontrol-flow, router

Outputs

  • default — (no description)

Settings

PropertyTypeRequiredDefaultUI GroupDescription
casesarrayyes[]—
defaultstring—default—
sourcePathstringyes——

Example

yaml
# Use this node in a flow:
nodes:
  - id: my_step
    name: My Step
    kind: router
    action_ref: core/switch
    config:
      cases: []
      default: default
      sourcePath: some.packet.path