class IfMgrCommandBase

Base class for Interface Manager Commands. More...

Contains pure virtuals
Definition#include <ifmgr_cmd_base.hh>
Inherited byIfMgrHintCommandBase, IfMgrHintTreeComplete, IfMgrHintUpdatesMade, IfMgrIPv4Add, IfMgrIPv4CommandBase, IfMgrIPv4Remove, IfMgrIPv4SetBroadcast, IfMgrIPv4SetEnabled, IfMgrIPv4SetEndpoint, IfMgrIPv4SetLoopback, IfMgrIPv4SetMulticastCapable, IfMgrIPv4SetPrefix, IfMgrIPv6Add, IfMgrIPv6CommandBase, IfMgrIPv6Remove, IfMgrIPv6SetEnabled, IfMgrIPv6SetEndpoint, IfMgrIPv6SetLoopback, IfMgrIPv6SetMulticastCapable, IfMgrIPv6SetPrefix, IfMgrIfAdd, IfMgrIfCommandBase, IfMgrIfRemove, IfMgrIfSetEnabled, IfMgrIfSetMac, IfMgrIfSetMtu, IfMgrIfSetPifIndex, IfMgrVifAdd, IfMgrVifCommandBase, IfMgrVifRemove, IfMgrVifSetBroadcastCapable, IfMgrVifSetEnabled, IfMgrVifSetLoopbackCapable, IfMgrVifSetMulticastCapable, IfMgrVifSetP2PCapable, IfMgrVifSetPifIndex
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

Commands may be forwarded either on an existing interface configuration tree (represented by IfMgrIfTree objects) or as Xrls. When forwarded as Xrls the command is sent to a remote target. The two methods of forward are intended to facilitate maintaining local and remote copies of IfMgrIfTree objects.

 ~IfMgrCommandBase ()

~IfMgrCommandBase

[pure virtual]

bool  execute (IfMgrIfTree& tree)

execute

[const pure virtual]

Execute Command to interface tree.

Returns: true on success, false on failure.

bool  forward (XrlSender& sender, const string& xrl_target, const IfMgrXrlSendCB& xscb)

forward

[const pure virtual]

Forward Command as an Xrl call to a remote target.

Parameters:
senderxrl router to use as the command sender.
xrl_targetthe target to direct the command to.
xscbcallback to invoke with Xrl result.

Returns: true on success, false on failure.

string  str ()

str

[const pure virtual]

Render command as string.


Generated by: pavlin on possum.icir.org on Thu Nov 6 23:46:59 2003, using kdoc 2.0a54+XORP.