xorp

IfConfigSetDummy Class Reference

Inheritance diagram for IfConfigSetDummy:
IfConfigSet

List of all members.

Public Member Functions

 IfConfigSetDummy (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~IfConfigSetDummy ()
 Virtual destructor.
virtual int start (string &error_msg)
 Start operation.
virtual int stop (string &error_msg)
 Stop operation.
const IfTreeiftree () const
 Get a reference to the IfTree instance.
virtual int push_config (const IfTree &iftree)
 Push the network interface configuration into the underlying system.

Private Member Functions

virtual bool is_discard_emulated (const IfTreeInterface &i) const
 Determine if the interface's underlying provider implements discard semantics natively, or if they are emulated through other means.
virtual bool is_unreachable_emulated (const IfTreeInterface &i) const
 Determine if the interface's underlying provider implements unreachable semantics natively, or if they are emulated through other means.
virtual int config_begin (string &error_msg)
 Start the configuration.
virtual int config_end (string &error_msg)
 Complete the configuration.
virtual int config_interface_begin (const IfTreeInterface *pulled_ifp, IfTreeInterface &config_iface, string &error_msg)
 Begin the interface configuration.
virtual int config_interface_end (const IfTreeInterface *pulled_ifp, const IfTreeInterface &config_iface, string &error_msg)
 End the interface configuration.
virtual int config_vif_begin (const IfTreeInterface *pulled_ifp, const IfTreeVif *pulled_vifp, const IfTreeInterface &config_iface, const IfTreeVif &config_vif, string &error_msg)
 Begin the vif configuration.
virtual int config_vif_end (const IfTreeInterface *pulled_ifp, const IfTreeVif *pulled_vifp, const IfTreeInterface &config_iface, const IfTreeVif &config_vif, string &error_msg)
 End the vif configuration.
virtual int config_add_address (const IfTreeInterface *pulled_ifp, const IfTreeVif *pulled_vifp, const IfTreeAddr4 *pulled_addrp, const IfTreeInterface &config_iface, const IfTreeVif &config_vif, const IfTreeAddr4 &config_addr, string &error_msg)
 Add IPv4 address information.
virtual int config_delete_address (const IfTreeInterface *pulled_ifp, const IfTreeVif *pulled_vifp, const IfTreeAddr4 *pulled_addrp, const IfTreeInterface &config_iface, const IfTreeVif &config_vif, const IfTreeAddr4 &config_addr, string &error_msg)
 Delete IPv4 address information.
virtual int config_add_address (const IfTreeInterface *pulled_ifp, const IfTreeVif *pulled_vifp, const IfTreeAddr6 *pulled_addrp, const IfTreeInterface &config_iface, const IfTreeVif &config_vif, const IfTreeAddr6 &config_addr, string &error_msg)
 Add IPv6 address information.
virtual int config_delete_address (const IfTreeInterface *pulled_ifp, const IfTreeVif *pulled_vifp, const IfTreeAddr6 *pulled_addrp, const IfTreeInterface &config_iface, const IfTreeVif &config_vif, const IfTreeAddr6 &config_addr, string &error_msg)
 Delete IPv6 address information.

Private Attributes

IfTree _iftree

Constructor & Destructor Documentation

IfConfigSetDummy::IfConfigSetDummy ( FeaDataPlaneManager fea_data_plane_manager)

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

int IfConfigSetDummy::config_add_address ( const IfTreeInterface pulled_ifp,
const IfTreeVif pulled_vifp,
const IfTreeAddr4 pulled_addrp,
const IfTreeInterface config_iface,
const IfTreeVif config_vif,
const IfTreeAddr4 config_addr,
string &  error_msg 
) [private, virtual]

Add IPv4 address information.

If an entry for the same address already exists, is is overwritten with the new information.

Parameters:
pulled_ifppointer to the interface information pulled from the system.
pulled_vifppointer to the vif information pulled from the system.
pulled_addrppointer to the address information pulled from the system.
config_ifacereference to the interface with the information to configure.
config_vifreference to the vif with the information to configure.
config_addrreference to the address with the information to configure.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigSet.

int IfConfigSetDummy::config_add_address ( const IfTreeInterface pulled_ifp,
const IfTreeVif pulled_vifp,
const IfTreeAddr6 pulled_addrp,
const IfTreeInterface config_iface,
const IfTreeVif config_vif,
const IfTreeAddr6 config_addr,
string &  error_msg 
) [private, virtual]

Add IPv6 address information.

If an entry for the same address already exists, is is overwritten with the new information.

Parameters:
pulled_ifppointer to the interface information pulled from the system.
pulled_vifppointer to the vif information pulled from the system.
pulled_addrppointer to the address information pulled from the system.
config_ifacereference to the interface with the information to configure.
config_vifreference to the vif with the information to configure.
config_addrreference to the address with the information to configure.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigSet.

int IfConfigSetDummy::config_begin ( string &  error_msg) [private, virtual]

Start the configuration.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigSet.

int IfConfigSetDummy::config_delete_address ( const IfTreeInterface pulled_ifp,
const IfTreeVif pulled_vifp,
const IfTreeAddr6 pulled_addrp,
const IfTreeInterface config_iface,
const IfTreeVif config_vif,
const IfTreeAddr6 config_addr,
string &  error_msg 
) [private, virtual]

Delete IPv6 address information.

Parameters:
pulled_ifppointer to the interface information pulled from the system.
pulled_vifppointer to the vif information pulled from the system.
pulled_addrppointer to the address information pulled from the system.
config_ifacereference to the interface with the information to configure.
config_vifreference to the vif with the information to configure.
config_addrreference to the address with the information to configure.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigSet.

int IfConfigSetDummy::config_delete_address ( const IfTreeInterface pulled_ifp,
const IfTreeVif pulled_vifp,
const IfTreeAddr4 pulled_addrp,
const IfTreeInterface config_iface,
const IfTreeVif config_vif,
const IfTreeAddr4 config_addr,
string &  error_msg 
) [private, virtual]

Delete IPv4 address information.

Parameters:
pulled_ifppointer to the interface information pulled from the system.
pulled_vifppointer to the vif information pulled from the system.
pulled_addrppointer to the address information pulled from the system.
config_ifacereference to the interface with the information to configure.
config_vifreference to the vif with the information to configure.
config_addrreference to the address with the information to configure.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigSet.

int IfConfigSetDummy::config_end ( string &  error_msg) [private, virtual]

Complete the configuration.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigSet.

int IfConfigSetDummy::config_interface_begin ( const IfTreeInterface pulled_ifp,
IfTreeInterface config_iface,
string &  error_msg 
) [private, virtual]

Begin the interface configuration.

Parameters:
pulled_ifppointer to the interface information pulled from the system.
config_ifacereference to the interface with the information to configure.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigSet.

int IfConfigSetDummy::config_interface_end ( const IfTreeInterface pulled_ifp,
const IfTreeInterface config_iface,
string &  error_msg 
) [private, virtual]

End the interface configuration.

Parameters:
pulled_ifppointer to the interface information pulled from the system.
config_ifacereference to the interface with the information to configure.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigSet.

int IfConfigSetDummy::config_vif_begin ( const IfTreeInterface pulled_ifp,
const IfTreeVif pulled_vifp,
const IfTreeInterface config_iface,
const IfTreeVif config_vif,
string &  error_msg 
) [private, virtual]

Begin the vif configuration.

Parameters:
pulled_ifppointer to the interface information pulled from the system.
pulled_vifppointer to the vif information pulled from the system.
config_ifacereference to the interface with the information to configure.
config_vifreference to the vif with the information to configure.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigSet.

int IfConfigSetDummy::config_vif_end ( const IfTreeInterface pulled_ifp,
const IfTreeVif pulled_vifp,
const IfTreeInterface config_iface,
const IfTreeVif config_vif,
string &  error_msg 
) [private, virtual]

End the vif configuration.

Parameters:
pulled_ifppointer to the interface information pulled from the system.
pulled_vifppointer to the vif information pulled from the system.
config_ifacereference to the interface with the information to configure.
config_vifreference to the vif with the information to configure.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigSet.

const IfTree& IfConfigSetDummy::iftree ( ) const [inline]

Get a reference to the IfTree instance.

Returns:
a reference to the IfTree instance.
bool IfConfigSetDummy::is_discard_emulated ( const IfTreeInterface i) const [private, virtual]

Determine if the interface's underlying provider implements discard semantics natively, or if they are emulated through other means.

Parameters:
ithe interface item to inspect.
Returns:
true if discard semantics are emulated.

Implements IfConfigSet.

bool IfConfigSetDummy::is_unreachable_emulated ( const IfTreeInterface i) const [private, virtual]

Determine if the interface's underlying provider implements unreachable semantics natively, or if they are emulated through other means.

Parameters:
ithe interface item to inspect.
Returns:
true if unreachable semantics are emulated.

Implements IfConfigSet.

int IfConfigSetDummy::push_config ( const IfTree iftree) [virtual]

Push the network interface configuration into the underlying system.

Note that on return some of the interface tree configuration state may be modified.

Parameters:
iftreethe interface tree configuration to push.
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Reimplemented from IfConfigSet.

int IfConfigSetDummy::start ( string &  error_msg) [virtual]

Start operation.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigSet.

int IfConfigSetDummy::stop ( string &  error_msg) [virtual]

Stop operation.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements IfConfigSet.


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