Global parameters options that affects the command execution.
ParametersError - Throws when passed parameters are invalid.
CommandError - Throws when the executed command fails.
Import module
import { rule } from 'iproute';
Flush the rules
await rule.flush();
Generated using TypeDoc
Deletes all rules.
Warning: Changes to the RPDB made with these commands do not become active immediately. It is assumed that after a script finishes a batch of updates, it flushes the routing cache with
ip route flush cache
.