action Network

Run Network Fault Proxy

Run fault proxy to introduce network faults to streams.

Run it now
View details
Typeaction
Modulechaosfault.actions
Namerun_proxy
Returnlist

Usage

JSON

{
  "name": "run-proxy",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosfault.actions",
    "func": "run_proxy",
    "arguments": {
      "proxy_args": ""
    }
  }
}

YAML

name: run-proxy
type: action
provider:
  type: python
  module: chaosfault.actions
  func: run_proxy
  arguments:
    proxy_args: ''

Arguments

NameTypeDefaultRequiredTitleDescription
proxy_argsstringYesProxy Argumentsfault proxy arguments for its run command https://fault-project.com/reference/cli-commands/#run-command-options
durationfloat0NoDurationSets the window in seconds during which the proxy runs. The default of 0 means the proxy does not stop on its own
verbosebooleanfalseNoEnables Debug LoggingMake fault more verbose. Enable this only for debugging as fault can be chatty.

Run the fault proxy with the appropriate network faults.

Signature

def run_proxy(
    proxy_args: str,
    duration: float | None = None,
    set_http_proxy_variables: bool = False,
    verbose: bool = False,
) -> Tuple[int, str, str]:
  pass