REMove

Delete entry by index from a sorted table

REMove

Shortest form: rem.

Delete entries of a hashed, sorted or CAM table by index: remove <TABLE> <INDEX> [<COUNT>] (default count 1). Other tables are refused (ERROR: <t> table is not sorted, hashed, or CAM).

Warning

This changes the hardware behind SONiC’s back (see DELete).

Unvalidated

drivshell> remove L2X <index> 1

Built-in help

Parameters: <TABLE> <INDEX> [COUNT]
    Deletes an entry from a table by index.
    (For the ARL, reads the table entry and deletes by key).