MPLS Static VRF label management.
This module manages VRF label decapsulation for traffic arriving at the switch (on any interface).
In this example, a static VRF label route is configured for MPLS traffic arriving at the switch with a top label of 16. This label is mapped to a corresponding VRF “foo”.
* // Configures a static VRF label route * eos::mpls_vrf_label_t vrf_label(mpls_label_t(16), "foo"); * mgr->mpls_vrf_label_set(vrf_label); *
By configuring a static VRF label route, the switch will decapsulate traffic matching the specified top label and forward normally based on the inner protocol headers and the routes within the specified VRF. IPv4, IPv6, and MPLS are the only inner protocols presently supported. Static MPLS routes are only available within the ‘default’ VRF when the inner protocol is MPLS, the specified VRF is ignored.
An iterator that yields a mpls_vrf_label_t for each configured VRF label route.
Private Functions
Friends
A manager of ‘mpls static vrf-label’ configurations.
Create one of these via sdk object prior to starting the agent main loop. When your eos::agent_handler::on_initialized virtual function is called, the manager is valid for use.
Public Functions
Enter resync mode.
At this point the mpls_vrf_label_mgr will start tracking which routes you’ve added.
Exit resync mode.
All VRF label routes in Sysdb that you haven’t re-added during this resync period will now be deleted.
Iterates over all the VRF label routes currently configured.
Returns the current configuration of a VRF label route
If no VRF label route exists, this returns an empty mpls_vrf_label_t()
Adds the specified VRF label route to the system configuration.
Either creates or updates a VRF label route (keyed by the label).
Removes the VRF label route from the configuration.
If the specified label does not exist, no action is taken.
Protected Functions
Private Members
A static VRF label decap route configuration model.
Public Functions
Getter for ‘label’: the decap label.
Getter for ‘vrf_name’: the name of the VRF.
The hash function for type mpls_vrf_label_t.
Returns a string representation of the current object’s values.
Friends
A utility stream operator that adds a string representation of mpls_vrf_label_t to the ostream.