class RouterCLI


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods


Detailed Description

 RouterCLI (XorpShell& xorpsh, CliNode& cli_node, bool verbose)

RouterCLI

 ~RouterCLI ()

~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  got_config_users (const XrlError& e, const XrlAtomList* users)

got_config_users

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:

resultpartial output
void  op_mode_cmd_done (bool success, const string& error_msg)

op_mode_cmd_done

Callback: called when the operational command completes

Parameters:

successtrue if the command suceeded
error_msgif 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_namethe name of the server that returned the result.
cli_term_namethe name of the terminal that originated the command.
cli_session_idthe session ID of the terminal that originated the command.
command_global_namethe name of the command that is interrupted.
command_argsthe 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 Thu Jul 8 23:48:41 2004, using kdoc $.