|
|
int add_protocol (const string& module_instance_name,
xorp_module_id module_id)
| add_protocol |
Add/register a protocol instance.
Parameters:
module_instance_name | the module instance name of the protocol to add/register. |
module_id | the module ID (xorp_module_id) of the protocol to add/register. |
Returns: XORP_OK on success, otherwise XORP_ERROR.
int delete_protocol (const string& module_instance_name,
xorp_module_id module_id)
| delete_protocol |
Delete/deregister a protocol instance.
Parameters:
module_instance_name | the module instance name of the protocol to delete/deregister. |
module_id | the module ID (xorp_module_id) of the protocol to delete/deregister. |
Returns: XORP_OK on success, otherwise XORP_ERROR.
bool is_registered (xorp_module_id module_id)
| is_registered |
[const]
Test if any instance of a given protocol is registered.
Parameters:
module_id | the module ID (xorp_module_id) of the protocol to test. |
Returns: true if any instance of the given protocol is registered, otherwise false.
bool is_registered (const string& module_instance_name,
xorp_module_id module_id)
| is_registered |
[const]
Test if a protocol module instance is registered.
Parameters:
module_instance_name | the module instance name of the protocol to test. |
module_id | the module ID (xorp_module_id) of the protocol to test. |
Returns: true if the module is registered, otherwise false.
const list<string>& module_instance_name_list (xorp_module_id module_id)
| module_instance_name_list |
[const]
Get the list of all registered protocol instances for a given protocol.
Parameters:
module_id | the module ID (xorp_module_id) of the protocol. |
Returns: the list of all registered protocol instances for the given protocol.
const list<pair<string, xorp_module_id> >& all_module_instance_name_list ()
| all_module_instance_name_list |
[const]