Skip to main content

cmd_interfaces

Function cmd_interfaces 

Source
pub fn cmd_interfaces() -> Command
Expand description

Creates the CLI command for displaying or modifying batman-adv interfaces.

ยงReturns

  • A clap::Command configured with:
    • Name: "interface"
    • Alias: "if"
    • Short and long description: "Display or modify the batman-adv interface settings."
    • Usage override:
      robctl [options] interface|if [options] [add|del iface(s)]
      robctl [options] interface|if [options] create [routing_algo|ra RA_NAME]
      robctl [options] interface|if [options] destroy
    • Optional flags and arguments:
      • -M, --manual: Disable automatic creation/destruction of batman-adv interface
      • action: Command name, one of add, a, del, d, create, c, destroy, D
      • params: Additional parameters, either interface names (for add/del) or routing algorithm name (for create)
    • Version flag disabled