Public Types
Public Methods
- RouterCLI (XorpShell& xorpsh, CliNode& cli_node, bool verbose)
- ~RouterCLI ()
- bool is_config_mode () const
- void commit_done_by_user (int uid)
- void clear_command_set ()
- int configure_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- void enter_config_done (const XrlError& e)
- void got_config_users (const XrlError& e, const XrlAtomList* users)
- void new_config_user (uid_t user_id)
- void leave_config_done (const XrlError& e)
- void notify_user (const string& alert, bool urgent)
- int op_help_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- int conf_help_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- int logout_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- int exit_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- int edit_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- map<string, string> text_entry_children_func (const string& path,
bool& is_executable,
bool& can_pipe) const
- int text_entry_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- int delete_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- int set_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- int immediate_set_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- int commit_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- void commit_done (bool success, string errmsg)
- int show_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- int op_mode_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- int save_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- void save_done (const XrlError& e)
- int load_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
- void load_communicated (const XrlError& e)
- void load_done (bool success, string errmsg)
- map<string, string> op_mode_help (const string& path,
bool& is_executable,
bool& can_pipe) const
- map<string, string> configure_mode_help (const string& path,
bool& is_executable,
bool& can_pipe) const
- void op_mode_cmd_print (const string& result)
- void op_mode_cmd_done (bool success, const string& error_msg)
- void op_mode_cmd_interrupt (const string& server_name,
const string& cli_term_name,
uint32_t cli_session_id,
const string& command_global_name,
const vector<string>& command_args)
- void op_mode_cmd_tidy ()
RouterCLI (XorpShell& xorpsh, CliNode& cli_node, bool verbose)
| RouterCLI |
bool is_config_mode ()
| is_config_mode |
[const]
void commit_done_by_user (int uid)
| commit_done_by_user |
void clear_command_set ()
| clear_command_set |
int configure_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| configure_func |
void enter_config_done (const XrlError& e)
| enter_config_done |
void new_config_user (uid_t user_id)
| new_config_user |
void leave_config_done (const XrlError& e)
| leave_config_done |
void notify_user (const string& alert, bool urgent)
| notify_user |
int op_help_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| op_help_func |
int conf_help_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| conf_help_func |
int logout_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| logout_func |
int exit_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| exit_func |
int edit_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| edit_func |
map<string, string> text_entry_children_func (const string& path,
bool& is_executable,
bool& can_pipe)
| text_entry_children_func |
[const]
int text_entry_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| text_entry_func |
int delete_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| delete_func |
int set_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| set_func |
int immediate_set_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| immediate_set_func |
int commit_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| commit_func |
void commit_done (bool success, string errmsg)
| commit_done |
int show_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| show_func |
int op_mode_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| op_mode_func |
int save_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| save_func |
void save_done (const XrlError& e)
| save_done |
int load_func (const string& ,
const string& ,
uint32_t ,
const string& command_global_name,
const vector<string>& argv)
| load_func |
void load_communicated (const XrlError& e)
| load_communicated |
void load_done (bool success, string errmsg)
| load_done |
map<string, string> op_mode_help (const string& path,
bool& is_executable,
bool& can_pipe)
| op_mode_help |
[const]
map<string, string> configure_mode_help (const string& path,
bool& is_executable,
bool& can_pipe)
| configure_mode_help |
[const]
typedef XorpCallback1<void, const string&>::RefPtr OpModePrintCallback | OpModePrintCallback |
typedef XorpCallback2<void, bool,const string&>::RefPtr OpModeDoneCallback | OpModeDoneCallback |
void op_mode_cmd_print (const string& result)
| op_mode_cmd_print |
Callback: partial output generated by the operational command
Parameters:
void op_mode_cmd_done (bool success, const string& error_msg)
| op_mode_cmd_done |
Callback: called when the operational command completes
Parameters:
success | true if the command suceeded
|
error_msg | if the command failed the error message
|
void op_mode_cmd_interrupt (const string& server_name,
const string& cli_term_name,
uint32_t cli_session_id,
const string& command_global_name,
const vector<string>& command_args)
| op_mode_cmd_interrupt |
Callback: called when a user send an interrupt terminate the
operational mode command if there is one running.
Parameters:
server_name | the name of the server that returned the result.
|
cli_term_name | the name of the terminal that originated
the command.
|
cli_session_id | the session ID of the terminal that originated
the command.
|
command_global_name | the name of the command that is interrupted.
|
command_args | the arguments to the command that is interrupted.
|
void op_mode_cmd_tidy ()
| op_mode_cmd_tidy |
Tidy up operational mode command.
Can safely be called multiple times.
Generated by: pavlin on possum.icir.org on Wed Apr 13 21:53:23 2005, using kdoc $.