Base interface types.
A base interface contains non-media or interface type specific information. Also included in this module is the interface ID type intf_id_t, used to uniquely identify any interface in the system of any type, as well as common enumerates.
This class receives changes to base interface attributes.
Public Functions
Registers this class to receive change updates on the interface.
Expects a boolean signifying whether notifications should be propagated to this instance or not.
Registers this class to receive change updates on the given interface.
Expects the id of the corresponding interface and a boolean signifying whether notifications should be propagated to this instance or not.
Handler called when a new interface is created.
After on_intf_create is called, the given intf_id is guaranteed to exist (ie intf_mgr::exists will return true). At that point, the intf_id can be used will all methods of the intf_mgr class.
This also means that the intf_id can be used with all other relevant *intf_mgr classes (ie eth_intf_mgr, eth_phy_intf_mgr, eth_lag_intf_mgr, and subintf_mgr as appropriate based on the intf_type).
Handler called when an interface has been removed.
After on_intf_delete is called, the given intf_id is guaranteed to not exist (ie intf_mgr::exists will return false). At that point, the intf_id cannot be used will any methods in the intf_mgr class.
This also means that the intf_id can no longer be used with all other relevant *intf_mgr classes (ie eth_intf_mgr, eth_phy_intf_mgr, eth_lag_intf_mgr, and subintf_mgr as appropriate based on the intf_type).
Handler called when the operational status of an interface changes.
Note that for physical interfaces, the on_oper_status handler will get called with INTF_OPER_NULL when the underlying hardware for that physical interface is removed.
Handler called after an interface has been configured to be enabled.
Handler called when the configured description of an interface changes.
An interface iterator.
Private Functions
Friends
The interface manager. This class inspects and configures base interface attributes.
Public Functions
Iterates over all interfaces currently available in the system.
Returns whether the given interface exists.
If exists returns true, then this intf_id_t can be successfully passed into every method of the intf_mgr. If not, then methods of the intf_mgr can throw a no_such_interface_error exception.
The exists method of all *intf_mgr classes that manage a given interface (ie intf_mgr, eth_intf_mgr, eth_phy_intf_mgr, eth_lag_intf_mgr, and/or subintf_mgr) are all guaranteed to return the same result.
Returns true if the given interface is configured to be enabled.
Configures the enabled status of the interface.
Returns the configured description of the given interface.
Configure the description of the given interface. Creates a copy of the passed in string description.
Configure the description of the given interface.
Inspects the current operational status of the given interface.
Protected Functions
Private Members
Friends
The interface counter manager. This class inspects base interface counters and statistics.
Public Functions
Get the current counters of the given interface.
Get the current traffic rates of the given interface.
Protected Functions
Private Members
Warning
doxygenfile: Found multiple matches for file “eos/types/intf.h