Clear impairment
http://localhost/v1/impairments/{direction}Served over the Unix socket /run/chaosd/chaosd.sock
Removes the qdiscs CHAOS installed on a direction and returns the cleared state.
Clear is conservative. A root qdisc that CHAOS did not install and that is not a kernel default (pfifo_fast, mq, mq_prio, noqueue) is left in place and reported as a foreign-state divergence.
Path parameters
directionstringRequiredThe direction to operate on. Each direction is configured independently. An unknown value returns 400.
port1port2Response
200 · application/jsonCleared state. Returns an AppliedState object.
directionstringRequiredport1port2impairmentImpairmentRequiredThe complete shaping state of one direction. Omitted fields are not applied.
divergencelist of DivergenceOptionalDifferences between requested and applied state. Omitted when empty.
captured_atinteger <int64>RequiredMonotonic timestamp in nanoseconds. The ordering source of truth.
captured_at_wallinteger <int64>RequiredWall-clock time in nanoseconds since the Unix epoch, for human correlation only.
Errors
Unknown direction or malformed body.
Permission denied. The daemon lacks CAP_NET_ADMIN.
Backend or I/O error.
