Function flush

  • Flush routing tables this command flushes routes selected by some criteria.

    The arguments have the same syntax and semantics as the arguments of ip route show, but routing tables are not listed but purged.

    Parameters

    • options: RouteShowOptions

      Parameters options to be passed down to ip.

    • globalOptions: GlobalOptions = {}

      Global parameters options that affects the command execution.

    Returns Promise<Command<RouteShowOptions>>

    Throws

    ParametersError - Throws when passed parameters are invalid.

    Throws

    CommandError - Throws when the executed command fails.

    Example

    Import module

    import { route } from 'iproute';
    

    Flush the table cache

    await route.flush({
    table: RouteRoutingTables.Cache
    });

Generated using TypeDoc