L1 source management module.
On platforms with a crosspoint, interfaces can configure their source using a config.
This module provides APIs to set and delete source configs, watch for config changes, get source configs and source statuses, and iterate through source configs and source statuses.
Public Functions
Register to receive notification when l1 source config for any interface changes.
Register to receive notification when l1 source config of an interface changes.
Called when l1 source of an interface is set.
Called when l1 source of an interface is removed.
An iterator that yields a intf_id_t for each l1 source config/status.
Private Functions
Friends
The l1 source manager. This class inspects and configures l1 source for an interface.
Public Functions
Configures l1 source of an interface.
Remove the l1 source of an interface.
Returns whether a l1 source config exists for the interface.
Returns the source config for an interface. If no source config is set, returns the default source config.
Returns the source status for an interface. If no source status exists, returns the default source status.
Iterator for l1 source configuration.
Iterator for l1 source status.
Protected Functions
Private Members
Friends
Enums
The type of an l1 source.
Values:
L1 source class.
The interface id “port” should be defined only if l1 source type is port.
Public Functions
Default constructor.
Constructor specifying only l1 source type.
Constructor specifying both l1 source type and interface id.
The hash function for type l1_source_t.
Returns a string representation of the current object’s values.
Friends
A utility stream operator that adds a string representation of l1_source_t to the ostream.