xorp

IfConfigProperty Class Reference

Inheritance diagram for IfConfigProperty:
IfConfigPropertyDummy IfConfigPropertyWindows

List of all members.

Public Member Functions

 IfConfigProperty (FeaDataPlaneManager &fea_data_plane_manager)
 Constructor.
virtual ~IfConfigProperty ()
 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)
 Start operation.
virtual int stop (string &error_msg)
 Stop operation.
virtual bool have_ipv4 () const
 Return true if the underlying system supports IPv4.
virtual bool have_ipv6 () const
 Return true if the underlying system supports IPv6.
virtual bool test_have_ipv4 () const =0
 Test whether the underlying system supports IPv4.
virtual bool test_have_ipv6 () const =0
 Test whether the underlying system supports IPv6.

Protected Attributes

bool _is_running

Private Attributes

IfConfig_ifconfig
FeaDataPlaneManager_fea_data_plane_manager
bool _have_ipv4
bool _have_ipv6
bool _first_start

Constructor & Destructor Documentation

IfConfigProperty::IfConfigProperty ( FeaDataPlaneManager fea_data_plane_manager)

Constructor.

Parameters:
fea_data_plane_managerthe corresponding data plane manager (FeaDataPlaneManager).

Member Function Documentation

FeaDataPlaneManager& IfConfigProperty::fea_data_plane_manager ( ) [inline]

Get the FeaDataPlaneManager instance.

Returns:
the FeaDataPlaneManager instance.
virtual bool IfConfigProperty::have_ipv4 ( ) const [inline, virtual]

Return true if the underlying system supports IPv4.

Returns:
true if the underlying system supports IPv4, otherwise false.
virtual bool IfConfigProperty::have_ipv6 ( ) const [inline, virtual]

Return true if the underlying system supports IPv6.

Returns:
true if the underlying system supports IPv6, otherwise false.
IfConfig& IfConfigProperty::ifconfig ( ) [inline]

Get the IfConfig instance.

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

Test whether this instance is running.

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

Start operation.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.
int IfConfigProperty::stop ( string &  error_msg) [virtual]

Stop operation.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.
virtual bool IfConfigProperty::test_have_ipv4 ( ) const [pure virtual]

Test whether the underlying system supports IPv4.

Returns:
true if the underlying system supports IPv4, otherwise false.

Implemented in IfConfigPropertyDummy, and IfConfigPropertyWindows.

virtual bool IfConfigProperty::test_have_ipv6 ( ) const [pure virtual]

Test whether the underlying system supports IPv6.

Returns:
true if the underlying system supports IPv6, otherwise false.

Implemented in IfConfigPropertyDummy, and IfConfigPropertyWindows.


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