class IfTreeVif
|
Fea class for virtual (logical) interface state. More... |
|
|
Public Types
- typedef map<const IPv4, IfTreeAddr4> V4Map
- typedef map<const IPv6, IfTreeAddr6> V6Map
Public Methods
Protected Members
Fea class for virtual (logical) interface state.
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:
v4addr | address 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:
v4addr | address to labelled.
|
Returns: true on success, false if address does not exist.
bool add_addr (const IPv6& v6addr)
| add_addr |
Add address.
Parameters:
v4addr | address 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:
v4addr | address 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.
[const]
Reimplemented from IfTreeItem.
const string _ifname
| _ifname |
[protected]
const string _vifname
| _vifname |
[protected]
[protected]
[protected]
[protected]
Generated by: pavlin on possum.icir.org on Wed Dec 11 16:50:56 2002, using kdoc 2.0a54+XORP. |