|
xorp
|
Base class for Interface Manager Commands. More...
#include <ifmgr_cmd_base.hh>
Public Member Functions | |
| virtual bool | execute (IfMgrIfTree &tree) const =0 |
| Execute Command to interface tree. | |
| virtual bool | forward (XrlSender &sender, const string &xrl_target, const IfMgrXrlSendCB &xscb) const =0 |
| Forward Command as an Xrl call to a remote target. | |
| virtual string | str () const =0 |
| Render command as string. | |
Base class for Interface Manager Commands.
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.
| virtual bool IfMgrCommandBase::execute | ( | IfMgrIfTree & | tree | ) | const [pure virtual] |
Execute Command to interface tree.
Implemented in IfMgrIfAdd, IfMgrIfRemove, IfMgrIfSetEnabled, IfMgrIfSetDiscard, IfMgrIfSetUnreachable, IfMgrIfSetManagement, IfMgrIfSetMtu, IfMgrIfSetMac, IfMgrIfSetPifIndex, IfMgrIfSetNoCarrier, IfMgrIfSetBaudrate, IfMgrIfSetString, IfMgrVifSetVlanId, IfMgrVifAdd, IfMgrVifRemove, IfMgrVifSetEnabled, IfMgrVifSetMulticastCapable, IfMgrVifSetBroadcastCapable, IfMgrVifSetP2PCapable, IfMgrVifSetLoopbackCapable, IfMgrVifSetPimRegister, IfMgrVifSetPifIndex, IfMgrVifSetVifIndex, IfMgrIPv4Add, IfMgrIPv4Remove, IfMgrIPv4SetPrefix, IfMgrIPv4SetEnabled, IfMgrIPv4SetMulticastCapable, IfMgrIPv4SetLoopback, IfMgrIPv4SetBroadcast, IfMgrIPv4SetEndpoint, and IfMgrHintCommandBase.
| virtual bool IfMgrCommandBase::forward | ( | XrlSender & | sender, |
| const string & | xrl_target, | ||
| const IfMgrXrlSendCB & | xscb | ||
| ) | const [pure virtual] |
Forward Command as an Xrl call to a remote target.
| sender | xrl router to use as the command sender. |
| xrl_target | the target to direct the command to. |
| xscb | callback to invoke with Xrl result. |
Implemented in IfMgrIfAdd, IfMgrIfRemove, IfMgrIfSetEnabled, IfMgrIfSetDiscard, IfMgrIfSetUnreachable, IfMgrIfSetManagement, IfMgrIfSetMtu, IfMgrIfSetMac, IfMgrIfSetPifIndex, IfMgrIfSetNoCarrier, IfMgrIfSetBaudrate, IfMgrIfSetString, IfMgrVifSetVlanId, IfMgrVifAdd, IfMgrVifRemove, IfMgrVifSetEnabled, IfMgrVifSetMulticastCapable, IfMgrVifSetBroadcastCapable, IfMgrVifSetP2PCapable, IfMgrVifSetLoopbackCapable, IfMgrVifSetPimRegister, IfMgrVifSetPifIndex, IfMgrVifSetVifIndex, IfMgrIPv4Add, IfMgrIPv4Remove, IfMgrIPv4SetPrefix, IfMgrIPv4SetEnabled, IfMgrIPv4SetMulticastCapable, IfMgrIPv4SetLoopback, IfMgrIPv4SetBroadcast, IfMgrIPv4SetEndpoint, IfMgrHintTreeComplete, and IfMgrHintUpdatesMade.