class IfTreeVif

Fea class for virtual (logical) interface state. More...

Definition#include <iftree.hh>
InheritsIfTreeItem [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Protected Members


Detailed Description

Fea class for virtual (logical) interface state.

typedef map<const IPv4, IfTreeAddr4> V4Map

V4Map

typedef map<const IPv6, IfTreeAddr6> V6Map

V6Map

 IfTreeVif (const string& ifname, const string& vifname)

IfTreeVif

const string&  ifname ()

ifname

[const]

const string&  vifname ()

vifname

[const]

inline bool  enabled ()

enabled

[const]

inline void  set_enabled (bool en)

set_enabled

inline const V4Map&  v4addrs ()

v4addrs

[const]

inline V4Map&  v4addrs ()

v4addrs

inline const V6Map&  v6addrs ()

v6addrs

[const]

inline V6Map&  v6addrs ()

v6addrs

inline V4Map::iterator  get_addr (const IPv4& a)

get_addr

inline V6Map::iterator  get_addr (const IPv6& a)

get_addr

inline V4Map::const_iterator  get_addr (const IPv4& a)

get_addr

[const]

inline V6Map::const_iterator  get_addr (const IPv6& a)

get_addr

[const]

bool  add_addr (const IPv4& v4addr)

add_addr

Add address.

Parameters:
v4addraddress to be added.

Returns: true on success, false if address already exists

bool  remove_addr (const IPv4& v4addr)

remove_addr

Mark address as DELETED. Deletion occurs when finalize_state is called.

Parameters:
v4addraddress to labelled.

Returns: true on success, false if address does not exist.

bool  add_addr (const IPv6& v6addr)

add_addr

Add address.

Parameters:
v4addraddress to be added.

Returns: true on success, false if address already exists

bool  remove_addr (const IPv6& v6addr)

remove_addr

Mark address as DELETED. Deletion occurs when finalize_state is called.

Parameters:
v4addraddress to labelled.

Returns: true on success, false if address does not exist.

inline void  copy_state (const IfTreeVif& o)

copy_state

Copy state of internal variables from another IfTreeVif.

void  finalize_state ()

finalize_state

Reimplemented from IfTreeItem.

string  str ()

str

[const]

Reimplemented from IfTreeItem.

const string _ifname

_ifname

[protected]

const string _vifname

_vifname

[protected]

bool _en

_en

[protected]

V4Map _v4addrs

_v4addrs

[protected]

V6Map _v6addrs

_v6addrs

[protected]


Generated by: pavlin on possum.icir.org on Wed Dec 11 16:50:56 2002, using kdoc 2.0a54+XORP.