| 
 | 
 | ||||||||||||||||
Fea class for holding physical interface state.
| typedef map<const string, IfTreeVif> VifMap | VifMap | 
| IfTreeInterface (const string& ifname) | IfTreeInterface | 
| inline const string&  name () | name | 
[const]
| inline const string&  ifname () | ifname | 
[const]
| inline uint32_t  pif_index () | pif_index | 
[const]
| inline void  set_pif_index (uint32_t v) | set_pif_index | 
| inline bool  enabled () | enabled | 
[const]
| inline void  set_enabled (bool en) | set_enabled | 
| inline uint32_t  mtu () | mtu | 
[const]
| inline void  set_mtu (uint32_t mtu) | set_mtu | 
| inline const Mac&  mac () | mac | 
[const]
| inline void  set_mac (const Mac& mac) | set_mac | 
| inline bool  no_carrier () | no_carrier | 
[const]
| inline void  set_no_carrier (bool v) | set_no_carrier | 
| inline bool  discard () | discard | 
[const]
| inline void  set_discard (bool discard) | set_discard | 
| inline bool  is_discard_emulated () | is_discard_emulated | 
[const]
| inline void  set_discard_emulated (bool v) | set_discard_emulated | 
| inline bool  flipped () | flipped | 
[const]
Get the flipped flag.
This flag indicates the interface's enable/disable status has been flipped (i.e., first disabled, and then enabled).
Returns: true if the interface has been flipped, otherwise false.
| inline void  set_flipped (bool v) | set_flipped | 
Set the value of the flipped flag.
Parameters:
| v | if true, then the flipped flag is enabled, otherwise is disabled. | 
| inline uint32_t  if_flags () | if_flags | 
[const]
Get the system-specific interface flags.
Typically, this value is read from the underlying system, and is used only for internal purpose.
Returns: the system-specific interface flags.
| inline void  set_if_flags (uint32_t if_flags) | set_if_flags | 
Store the system-specific interface flags.
Typically, this value is read from the underlying system, and is used only for internal purpose.
Parameters:
| if_flags | the value of the system-specific interface flags to store. | 
| inline const VifMap&  vifs () | vifs | 
[const]
| inline VifMap&  vifs () | vifs | 
| bool  add_vif (const string& vifname) | add_vif | 
| bool  remove_vif (const string& vifname) | remove_vif | 
| inline VifMap::iterator  get_vif (const string& vifname) | get_vif | 
| inline VifMap::const_iterator  get_vif (const string& vifname) | get_vif | 
[const]
| inline void  copy_state (const IfTreeInterface& o) | copy_state | 
Copy state of internal variables from another IfTreeInterface.
| inline bool  is_same_state (const IfTreeInterface& o) | is_same_state | 
Test if the interface-specific internal state is same.
Parameters:
| o | the IfTreeInterface to compare against. | 
Returns: true if the interface-specific internal state is same.
| void  finalize_state () | finalize_state | 
Reimplemented from IfTreeItem.
| string  str () | str | 
[const]
Reimplemented from IfTreeItem.
| const string _ifname | _ifname | 
[protected]
| uint32_t _pif_index | _pif_index | 
[protected]
| bool _enabled | _enabled | 
[protected]
| bool _discard | _discard | 
[protected]
| bool _is_discard_emulated | _is_discard_emulated | 
[protected]
| uint32_t _mtu | _mtu | 
[protected]
| Mac _mac | _mac | 
[protected]
| bool _no_carrier | _no_carrier | 
[protected]
| bool _flipped | _flipped | 
[protected]
| uint32_t _if_flags | _if_flags | 
[protected]
| VifMap _vifs | _vifs | 
[protected]
| inline IfTreeInterface::VifMap::iterator
 get_vif (const string& vifname) | get_vif | 
[protected]
| inline
IfTreeInterface::VifMap::const_iterator
 get_vif (const string& vifname) | get_vif | 
[protected const]