libosmovty 1.9.0.196-9975
Osmocom VTY library
cmd_node Struct Reference

Node which has some commands and prompt string and configuration function pointer . More...

#include <command.h>

Data Fields

int node
 Node index. More...
 
const char * prompt
 Prompt character at vty interface. More...
 
int vtysh
 Is this node's configuration goes to vtysh ? More...
 
int(* func )(struct vty *)
 Node's configuration write function. More...
 
vector cmd_vector
 Vector of this node's command list. More...
 
char name [64]
 Human-readable ID of this node. More...
 

Detailed Description

Node which has some commands and prompt string and configuration function pointer .

Field Documentation

◆ cmd_vector

vector cmd_node::cmd_vector

◆ func

int(* cmd_node::func) (struct vty *)

Node's configuration write function.

Referenced by if(), install_node(), install_node_bare(), and write_config_file().

◆ name

char cmd_node::name[64]

Human-readable ID of this node.

Should only contain alphanumeric plus '-' and '_' characters (is used as XML ID for 'show online-help'). If left NUL, this is derived from the prompt.

Referenced by install_node_bare(), and vty_dump_nodes().

◆ node

int cmd_node::node

Node index.

Referenced by install_node(), install_node_bare(), and vty_dump_nodes().

◆ prompt

const char* cmd_node::prompt

Prompt character at vty interface.

Referenced by cmd_prompt(), install_node_bare(), and node_name_from_prompt().

◆ vtysh

int cmd_node::vtysh

Is this node's configuration goes to vtysh ?

Referenced by if().


The documentation for this struct was generated from the following file: