class XrlInterfaceManager

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

Definition#include <xrl_ifmanager.hh>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

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.

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

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]

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 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 Mon Mar 10 19:34:57 2003, using kdoc 2.0a54+XORP.