xorp

IfConfigVlanSetLinux Class Reference

Inheritance diagram for IfConfigVlanSetLinux:
IfConfigVlanSet

List of all members.

Public Member Functions

 IfConfigVlanSetLinux (FeaDataPlaneManager &fea_data_plane_manager, bool is_dummy)
 Constructor.
virtual ~IfConfigVlanSetLinux ()
 Virtual destructor.
virtual int start (string &error_msg)
 Start operation.
virtual int stop (string &error_msg)
 Stop operation.
virtual int config_add_vlan (const IfTreeInterface *system_ifp, const IfTreeInterface &config_if, bool &created_if, string &error_msg)
 Add a VLAN.
virtual int config_delete_vlan (const IfTreeInterface &config_iface, string &error_msg)
 Delete a VLAN.

Private Member Functions

int add_vlan (const string &parent_ifname, const string &vlan_name, uint16_t vlan_id, bool &created_if, string &error_msg)
 Add a VLAN.
int delete_vlan (const string &ifname, string &error_msg)
 Delete a VLAN.

Private Attributes

bool _is_dummy
int _s4

Constructor & Destructor Documentation

IfConfigVlanSetLinux::IfConfigVlanSetLinux ( FeaDataPlaneManager fea_data_plane_manager,
bool  is_dummy 
)

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

int IfConfigVlanSetLinux::add_vlan ( const string &  parent_ifname,
const string &  vlan_name,
uint16_t  vlan_id,
bool &  created_if,
string &  error_msg 
) [private]

Add a VLAN.

Parameters:
parent_ifnamethe parent interface name.
vlan_namethe VLAN vif name.
vlan_idthe VLAN ID.
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.
int IfConfigVlanSetLinux::config_add_vlan ( const IfTreeInterface system_ifp,
const IfTreeInterface config_if,
bool &  created_if,
string &  error_msg 
) [virtual]

Add a VLAN.

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

Parameters:
system_ifppointer to the System's vlan interface, or NULL.
config_ifConfigured VLAN interface information.
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.

Implements IfConfigVlanSet.

int IfConfigVlanSetLinux::config_delete_vlan ( const IfTreeInterface config_iface,
string &  error_msg 
) [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.

Implements IfConfigVlanSet.

int IfConfigVlanSetLinux::delete_vlan ( const string &  ifname,
string &  error_msg 
) [private]

Delete a VLAN.

Parameters:
ifnameThe vlan to delete.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.
int IfConfigVlanSetLinux::start ( string &  error_msg) [virtual]

Start operation.

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

Implements IfConfigVlanSet.

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

Stop operation.

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

Implements IfConfigVlanSet.


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