class XrlInterfaceManager
|
Helper class for helping with Interface configuration transactions
via an Xrl interface. More... |
|
|
Public Types
- typedef InterfaceTransactionManager::Operation Operation
Public Methods
- XrlInterfaceManager (EventLoop& e,
InterfaceManager& ifm,
uint32_t max_ops = 200)
- ProcessStatus status (string& reason) const
- XrlCmdError start_transaction (uint32_t& tid)
- XrlCmdError commit_transaction (uint32_t tid)
- XrlCmdError abort_transaction (uint32_t tid)
- XrlCmdError add (uint32_t tid, const Operation& op)
- inline XrlCmdError get_if (const string& ifname,
const IfTreeInterface*& fi) const
- inline XrlCmdError get_vif (const string& ifname,
const string& vifname,
const IfTreeVif*& fv) const
- inline XrlCmdError get_addr (const string& ifname,
const string& vifname,
const IPv4& addr,
const IfTreeAddr4*& fa) const
- inline XrlCmdError get_addr (const string& ifname,
const string& vifname,
const IPv6& addr,
const IfTreeAddr6*& fa) const
- inline XrlCmdError pull_config_get_if (const string& ifname,
const IfTreeInterface*& fi) const
- inline XrlCmdError pull_config_get_vif (const string& ifname,
const string& vifname,
const IfTreeVif*& fv) const
- inline XrlCmdError pull_config_get_addr (const string& ifname,
const string& vifname,
const IPv4& addr,
const IfTreeAddr4*& fa) const
- inline XrlCmdError pull_config_get_addr (const string& ifname,
const string& vifname,
const IPv6& addr,
const IfTreeAddr6*& fa) const
- inline XrlCmdError addr_valid (const string& ifname,
const string& vifname,
const string& descr,
const IPv4& addr)
- inline XrlCmdError addr_valid (const string& ifname,
const string& vifname,
const string& descr,
const IPv6& addr)
- inline IfTree& iftree () const
- inline IfConfig& ifconfig () const
Protected Methods
- XrlCmdError get_if_from_config (const IfTree& it,
const string& ifname,
const IfTreeInterface*& fi) const
- XrlCmdError get_vif_from_config (const IfTree& it,
const string& ifname,
const string& vifname,
const IfTreeVif*& fv) const
- XrlCmdError get_addr_from_config (const IfTree& it,
const string& ifname,
const string& vifname,
const IPv4& addr,
const IfTreeAddr4*& fa) const
- XrlCmdError get_addr_from_config (const IfTree& it,
const string& ifname,
const string& vifname,
const IPv6& addr,
const IfTreeAddr6*& fa) const
- inline XrlCmdError
get_if (const string& ifname,
const IfTreeInterface*& fi) const
- inline XrlCmdError
get_vif (const string& ifname,
const string& vif,
const IfTreeVif*& fv) const
- inline XrlCmdError
get_addr (const string& ifname,
const string& vif,
const IPv4& addr,
const IfTreeAddr4*& fa) const
- inline XrlCmdError
get_addr (const string& ifname,
const string& vif,
const IPv6& addr,
const IfTreeAddr6*& fa) const
- inline XrlCmdError
pull_config_get_if (const string& ifname,
const IfTreeInterface*& fi) const
- inline XrlCmdError
pull_config_get_vif (const string& ifname,
const string& vif,
const IfTreeVif*& fv) const
- inline XrlCmdError
pull_config_get_addr (const string& ifname,
const string& vif,
const IPv4& addr,
const IfTreeAddr4*& fa) const
- inline XrlCmdError
pull_config_get_addr (const string& ifname,
const string& vif,
const IPv6& addr,
const IfTreeAddr6*& fa) const
- inline XrlCmdError
addr_valid (const string& ifname,
const string& vifname,
const string& descr,
const IPv4& addr)
- inline XrlCmdError
addr_valid (const string& ifname,
const string& vifname,
const string& descr,
const IPv6& addr)
Protected Members
Helper class for helping with Interface configuration transactions
via an Xrl interface.
The class provides error messages suitable for Xrl return values
and does some extra checking not in the InterfaceManager
class.
typedef InterfaceTransactionManager::Operation Operation | Operation |
Constructor
Parameters:
e | the EventLoop.
|
ifm | the InterfaceManager object.
|
max_ops | the maximum number of operations pending.
|
ProcessStatus status (string& reason)
| status |
[const]
get the status of the interface manager.
Parameters:
reason | the human-readable reason for any failure.
|
Returns: the status of the interface manager.
XrlCmdError start_transaction (uint32_t& tid)
| start_transaction |
XrlCmdError commit_transaction (uint32_t tid)
| commit_transaction |
XrlCmdError abort_transaction (uint32_t tid)
| abort_transaction |
XrlCmdError add (uint32_t tid, const Operation& op)
| add |
[const]
inline XrlCmdError get_vif (const string& ifname,
const string& vifname,
const IfTreeVif*& fv)
| get_vif |
[const]
[const]
[const]
[const]
inline XrlCmdError pull_config_get_vif (const string& ifname,
const string& vifname,
const IfTreeVif*& fv)
| pull_config_get_vif |
[const]
inline XrlCmdError pull_config_get_addr (const string& ifname,
const string& vifname,
const IPv4& addr,
const IfTreeAddr4*& fa)
| pull_config_get_addr |
[const]
inline XrlCmdError pull_config_get_addr (const string& ifname,
const string& vifname,
const IPv6& addr,
const IfTreeAddr6*& fa)
| pull_config_get_addr |
[const]
inline XrlCmdError addr_valid (const string& ifname,
const string& vifname,
const string& descr,
const IPv4& addr)
| addr_valid |
inline XrlCmdError addr_valid (const string& ifname,
const string& vifname,
const string& descr,
const IPv6& addr)
| addr_valid |
inline IfTree& iftree ()
| iftree |
[const]
[const]
[protected const]
XrlCmdError get_vif_from_config (const IfTree& it,
const string& ifname,
const string& vifname,
const IfTreeVif*& fv)
| get_vif_from_config |
[protected const]
[protected const]
[protected const]
[protected]
[protected]
uint32_t _max_ops
| _max_ops |
[protected]
ProcessStatus _status
| _status |
[protected]
ProcessStatus _prev_status
| _prev_status |
[protected]
[protected const]
[protected const]
[protected const]
[protected const]
[protected const]
inline XrlCmdError
pull_config_get_vif (const string& ifname,
const string& vif,
const IfTreeVif*& fv)
| pull_config_get_vif |
[protected const]
inline XrlCmdError
pull_config_get_addr (const string& ifname,
const string& vif,
const IPv4& addr,
const IfTreeAddr4*& fa)
| pull_config_get_addr |
[protected const]
inline XrlCmdError
pull_config_get_addr (const string& ifname,
const string& vif,
const IPv6& addr,
const IfTreeAddr6*& fa)
| pull_config_get_addr |
[protected const]
inline XrlCmdError
addr_valid (const string& ifname,
const string& vifname,
const string& descr,
const IPv4& addr)
| addr_valid |
[protected]
inline XrlCmdError
addr_valid (const string& ifname,
const string& vifname,
const string& descr,
const IPv6& addr)
| addr_valid |
[protected]
Generated by: pavlin on possum.icir.org on Thu Aug 28 12:52:10 2003, using kdoc 2.0a54+XORP. |