class IfConfig

Base class for pushing and pulling interface configurations down to the particular platform. More...

Contains pure virtuals
Definition#include <ifconfig.hh>
Inherited byIfConfigDummy, IfConfigRoutingSocket
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

Base class for pushing and pulling interface configurations down to the particular platform.

 IfConfig (IfConfigUpdateReporterBase& ur, SimpleIfConfigErrorReporter& er)

IfConfig

Constructor.

Parameters:
urupdate reporter that receives updates through when configurations are pushed down and when triggered spontaneously on the underlying platform.
ererror reporter that errors are propagated through when configurations are pushed down.

 ~IfConfig ()

~IfConfig

[virtual]

bool  push_config (const IfTree& config)

push_config

[pure virtual]

Push IfTree structure down to platform. Errors are reported via the constructor supplied ErrorReporter instance.

Parameters:
configthe configuration to be pushed down.

Returns: true on success, false if errors occurred.

const IfTree&  pull_config (IfTree& config)

pull_config

[pure virtual]

Pull up current config from platform.

Parameters:
configan IfTree item that can be used to write the config to, if the underlying platform does maintain it's own copy of the config.

Returns: the platform IfTree.

const string&  push_error ()

push_error

[const]

Get error message associated with push operation.

void  report_update (const IfTreeInterface& fi)

report_update

[protected]

Check IfTreeInterface and report updates to IfConfigUpdateReporter.

void  report_update (const IfTreeInterface& fi, const IfTreeVif& fv)

report_update

[protected]

Check IfTreeVif and report updates to IfConfigUpdateReporter.

void  report_update (const IfTreeInterface& fi, const IfTreeVif& fv, const IfTreeAddr4& fa)

report_update

[protected]

Check IfTreeAddr4 and report updates to IfConfigUpdateReporter.

void  report_update (const IfTreeInterface& fi, const IfTreeVif& fv, const IfTreeAddr6& fa)

report_update

[protected]

Check IfTreeAddr6 and report updates to IfConfigUpdateReporter.

void  report_updates (const IfTree& it)

report_updates

[protected]

Check every item within IfTree and report updates to IfConfigUpdateReporter.

inline SimpleIfConfigErrorReporter&  er ()

er

[protected]

Get error reporter associated with IfConfig.


Generated by: pavlin on possum.icir.org on Mon Mar 10 19:34:57 2003, using kdoc 2.0a54+XORP.