class IfConfig

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

Definition#include <ifconfig.hh>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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

 IfConfig (EventLoop& eventloop, IfConfigUpdateReporterBase& ur, IfConfigErrorReporterBase& er)

IfConfig

Constructor.

Parameters:
eventloopthe event loop.
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]

Virtual destructor (in case this class is used as base class).

EventLoop&  eventloop ()

eventloop

inline IfConfigErrorReporterBase&  er ()

er

Get error reporter associated with IfConfig.

IfTree&  live_config ()

live_config

void  set_live_config (const IfTree& it)

set_live_config

const IfTree&  pulled_config ()

pulled_config

int  register_ifc_get (IfConfigGet *ifc_get)

register_ifc_get

int  register_ifc_set (IfConfigSet *ifc_set)

register_ifc_set

int  register_ifc_observer (IfConfigObserver *ifc_observer)

register_ifc_observer

IfConfigGet&  ifc_get ()

ifc_get

IfConfigSet&  ifc_set ()

ifc_set

IfConfigObserver&  ifc_observer ()

ifc_observer

int  set_dummy ()

set_dummy

Setup the unit to behave as dummy (for testing purpose).

Returns: XORP_OK on success, otherwise XORP_ERROR.

int  start ()

start

Start operation.

Returns: XORP_OK on success, otherwise XORP_ERROR.

int  stop ()

stop

Stop operation.

Returns: XORP_OK on success, otherwise XORP_ERROR.

bool  push_config (const IfTree& config)

push_config

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, otherwise false.

const IfTree&  pull_config ()

pull_config

Pull up current config from platform.

Returns: the platform IfTree.

void  flush_config ()

flush_config

IfTreeInterfaceget_if (IfTree& it, const string& ifname)

get_if

IfTreeVifget_vif (IfTree& it, const string& ifname, const string& vifname)

get_vif

const string&  push_error ()

push_error

[const]

Get error message associated with push operation.

void  report_update (const IfTreeInterface& fi, bool is_all_interfaces_reportee)

report_update

Check IfTreeInterface and report updates to IfConfigUpdateReporter.

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

report_update

Check IfTreeVif and report updates to IfConfigUpdateReporter.

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

report_update

Check IfTreeAddr4 and report updates to IfConfigUpdateReporter.

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

report_update

Check IfTreeAddr6 and report updates to IfConfigUpdateReporter.

void  report_updates (const IfTree& it, bool is_all_interfaces_reportee)

report_updates

Check every item within IfTree and report updates to IfConfigUpdateReporter.

void  map_ifindex (uint32_t index, const string& name)

map_ifindex

void  unmap_ifindex (uint32_t index)

unmap_ifindex

const char*  get_ifname (uint32_t index)

get_ifname


Generated by: pavlin on possum.icir.org on Thu Aug 28 12:52:10 2003, using kdoc 2.0a54+XORP.