class XrlInterfaceManager

Helper class for helping with Interface configuration transactions via an Xrl interface. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods

Protected Methods

Protected Members


Detailed Description

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

 XrlInterfaceManager (EventLoop& e, InterfaceManager& ifm, uint32_t max_ops = 200)

XrlInterfaceManager

Constructor

Parameters:

ethe EventLoop.
ifmthe InterfaceManager object.
max_opsthe maximum number of operations pending.
ProcessStatus  status (string& reason)

status

[const]

get the status of the interface manager.

Parameters:

reasonthe 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

inline XrlCmdError  get_if (const string& ifname, const IfTreeInterface*& fi)

get_if

[const]

inline XrlCmdError  get_vif (const string& ifname, const string& vifname, const IfTreeVif*& fv)

get_vif

[const]

inline XrlCmdError  get_addr (const string& ifname, const string& vifname, const IPv4& addr, const IfTreeAddr4*& fa)

get_addr

[const]

inline XrlCmdError  get_addr (const string& ifname, const string& vifname, const IPv6& addr, const IfTreeAddr6*& fa)

get_addr

[const]

inline XrlCmdError  pull_config_get_if (const string& ifname, const IfTreeInterface*& fi)

pull_config_get_if

[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 IPv4& addr, const string& descr, const IPv4& validate_addr)

addr_valid

inline XrlCmdError  addr_valid (const string& ifname, const string& vifname, const IPv6& addr, const string& descr, const IPv6& validate_addr)

addr_valid

inline IfTree&  iftree ()

iftree

[const]

inline IfTree&  old_iftree ()

old_iftree

[const]

inline IfConfig&  ifconfig ()

ifconfig

[const]

XrlCmdError  get_if_from_config (const IfTree& it, const string& ifname, const IfTreeInterface*& fi)

get_if_from_config

[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]

XrlCmdError  get_addr_from_config (const IfTree& it, const string& ifname, const string& vifname, const IPv4& addr, const IfTreeAddr4*& fa)

get_addr_from_config

[protected const]

XrlCmdError  get_addr_from_config (const IfTree& it, const string& ifname, const string& vifname, const IPv6& addr, const IfTreeAddr6*& fa)

get_addr_from_config

[protected const]

InterfaceTransactionManager _itm

_itm

[protected]

InterfaceManager& _ifm

_ifm

[protected]

uint32_t _max_ops

_max_ops

[protected]

ProcessStatus _status

_status

[protected]

ProcessStatus _prev_status

_prev_status

[protected]

inline XrlCmdError  get_if (const string& ifname, const IfTreeInterface*& fi)

get_if

[protected const]

inline XrlCmdError  get_vif (const string& ifname, const string& vif, const IfTreeVif*& fv)

get_vif

[protected const]

inline XrlCmdError  get_addr (const string& ifname, const string& vif, const IPv4& addr, const IfTreeAddr4*& fa)

get_addr

[protected const]

inline XrlCmdError  get_addr (const string& ifname, const string& vif, const IPv6& addr, const IfTreeAddr6*& fa)

get_addr

[protected const]

inline XrlCmdError  pull_config_get_if (const string& ifname, const IfTreeInterface*& fi)

pull_config_get_if

[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 IPv4& addr, const string& descr, const IPv4& validate_addr)

addr_valid

[protected]

inline XrlCmdError  addr_valid (const string& ifname, const string& vifname, const IPv6& addr, const string& descr, const IPv6& validate_addr)

addr_valid

[protected]


Generated by: pavlin on possum.icir.org on Thu Jul 8 23:48:26 2004, using kdoc $.