|
|
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:
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. |
Returns: true on success, false on failure.
string str ()
| str |
[const pure virtual]
Render command as string.