xorp

MfeaNodeCli Class Reference

The class for MfeaNode CLI access. More...

#include <mfea_node_cli.hh>

Inheritance diagram for MfeaNodeCli:
ProtoNodeCli ProtoUnit ProtoState ServiceBase BugCatcher XrlMfeaNode

List of all members.

Public Member Functions

 MfeaNodeCli (MfeaNode &mfea_node)
 Constructor for a given MFEA node.
virtual ~MfeaNodeCli ()
 Destructor.
int start ()
 Start the CLI operation.
int stop ()
 Stop the CLI operation.
void enable ()
 Enable node operation.
void disable ()
 Disable node operation.
int add_all_cli_commands ()
 Install all MFEA-related CLI commands to the CLI.

Private Member Functions

MfeaNodemfea_node () const
int cli_show_mfea_dataflow (const vector< string > &argv)
int cli_show_mfea_interface (const vector< string > &argv)
int cli_show_mfea_interface_address (const vector< string > &argv)

Private Attributes

MfeaNode_mfea_node

Detailed Description

The class for MfeaNode CLI access.


Constructor & Destructor Documentation

MfeaNodeCli::MfeaNodeCli ( MfeaNode mfea_node)

Constructor for a given MFEA node.

MfeaNodeCli::MfeaNodeCli: : The MFEA node to use.

Parameters:
mfea_nodethe MfeaNode this node belongs to.

MfeaNodeCli constructor.


Member Function Documentation

int MfeaNodeCli::add_all_cli_commands ( )

Install all MFEA-related CLI commands to the CLI.

Returns:
XORP_OK on success, otherwise XORP_ERROR.
void MfeaNodeCli::disable ( )

Disable node operation.

Disable the node operation.

If an unit is disabled, it cannot be start or pending-start. If the unit was runnning, it will be stop first.

Reimplemented from ProtoState.

void MfeaNodeCli::enable ( )

Enable node operation.

Enable the node operation.

If an unit is not enabled, it cannot be start, or pending-start.

Reimplemented from ProtoState.

int MfeaNodeCli::start ( )

Start the CLI operation.

Returns:
XORP_OK on success, otherwise XORP_ERROR.

Reimplemented from ProtoState.

int MfeaNodeCli::stop ( )

Stop the CLI operation.

Returns:
XORP_OK on success, otherwise XORP_ERROR.

Reimplemented from ProtoState.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations