xorp

IfConfigVlanSet Class Reference

Inheritance diagram for IfConfigVlanSet:
IfConfigVlanSetLinux

List of all members.

Public Member Functions

 IfConfigVlanSet (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~IfConfigVlanSet ()
 Virtual destructor.
IfConfigifconfig ()
 Get the IfConfig instance.
FeaDataPlaneManagerfea_data_plane_manager ()
 Get the FeaDataPlaneManager instance.
virtual bool is_running () const
 Test whether this instance is running.
virtual int start (string &error_msg)=0
 Start operation.
virtual int stop (string &error_msg)=0
 Stop operation.
virtual int config_add_vlan (const IfTreeInterface *pulled_ifp, const IfTreeInterface &config_iface, bool &created_if, string &error_msg)=0
 Add a VLAN.
virtual int config_delete_vlan (const IfTreeInterface &config_iface, string &error_msg)=0
 Delete a VLAN.

Protected Attributes

bool _is_running

Private Attributes

IfConfig_ifconfig
FeaDataPlaneManager_fea_data_plane_manager

Constructor & Destructor Documentation

IfConfigVlanSet::IfConfigVlanSet ( FeaDataPlaneManager fea_data_plane_manager) [inline]

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

virtual int IfConfigVlanSet::config_add_vlan ( const IfTreeInterface pulled_ifp,
const IfTreeInterface config_iface,
bool &  created_if,
string &  error_msg 
) [pure virtual]

Add a VLAN.

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

Parameters:
pulled_ifppointer to the interface information pulled from the system.
config_ifacereference to the interface with the information to configure.
created_ifDid we actually create a new interface in the OS?
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implemented in IfConfigVlanSetLinux.

virtual int IfConfigVlanSet::config_delete_vlan ( const IfTreeInterface config_iface,
string &  error_msg 
) [pure virtual]

Delete a VLAN.

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

Implemented in IfConfigVlanSetLinux.

FeaDataPlaneManager& IfConfigVlanSet::fea_data_plane_manager ( ) [inline]

Get the FeaDataPlaneManager instance.

Returns:
the FeaDataPlaneManager instance.
IfConfig& IfConfigVlanSet::ifconfig ( ) [inline]

Get the IfConfig instance.

Returns:
the IfConfig instance.
virtual bool IfConfigVlanSet::is_running ( ) const [inline, virtual]

Test whether this instance is running.

Returns:
true if the instance is running, otherwise false.
virtual int IfConfigVlanSet::start ( string &  error_msg) [pure virtual]

Start operation.

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

Implemented in IfConfigVlanSetLinux.

virtual int IfConfigVlanSet::stop ( string &  error_msg) [pure virtual]

Stop operation.

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

Implemented in IfConfigVlanSetLinux.


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