An iterator over MPLS routes.
Private Functions
Friends
An iterator over MPLS route via.
Private Functions
Friends
The IP static route manager.
Public Functions
Begin resync mode.
Complete resync mode, ready for regular updates.
Returns an MPLS route iterator.
Returns an MPLS via iterator for a given route (key).
Tests for existence of any routes matching the route key in the switch config.
Tests if the given via exists.
MPLS route management functions.
Inserts or updates MPLS static route in the switch configuration
Removes the MPLS route and all vias matching the route key.
Adds a via to an mpls_route_t.
Removes a via from an mpls_route_t. When all vias are removed, the route still exists with no nexthop information.
Protected Functions
Private Members
Typedefs
1..255; default/null is 0.
An MPLS route key is used for MPLS RIB configuration.
Public Functions
Constructor taking an ingress MPLS route label and a metric.
The MPLS label to match on ingress for this route.
A metric value between 1 and 255.
Getter for ‘top_label’: the label to match on ingress route lookup. 0 is the null metric; valid MPLS routes must have a metric in range 1..255.
Setter for ‘top_label’.
Getter for ‘metric’: the MPLS route metric. Lower metric routes are preferred.
Setter for ‘metric’.
Returns a string representation of the current object’s values.
Friends
A utility stream operator that adds a string representation of mpls_route_key_t to the ostream.
An MPLS v4/v6 static route.
Public Functions
Default value constructor.
MPLS route constructor taking an MPLS route key.
Getter for ‘key’: the MPLS route key.
Setter for ‘key’.
Getter for ‘persistent’: if true, this route is persisted in the startup- config.
Setter for ‘persistent’.
Returns a string representation of the current object’s values.
Friends
A utility stream operator that adds a string representation of mpls_route_t to the ostream.
An MPLS route via, defining the action to take for a given MPLS route.
Public Functions
Getter for ‘hop’: IP v4/v6 nexthop address (for decap and IP forward).
Setter for ‘hop’.
Getter for ‘intf’: sets the nexthop interface. Use the named interface if not a default intf_id_t.
Setter for ‘intf’.
Getter for ‘pushswap_label’: push or swap this label.
Setter for ‘pushswap_label’.
Getter for ‘label_action’: perform this MPLS operation.
Setter for ‘label_action’.
Getter for ‘ttl_mode’: applies to push and pop.
Setter for ‘ttl_mode’.
Getter for ‘payload_type’: used to assign ethertype after final pop.
Setter for ‘payload_type’.
Getter for ‘skip_egress_acl’: set if matching packets should ignore the egress ACL.
Setter for ‘skip_egress_acl’.
Returns a string representation of the current object’s values.
Private Members
Friends
A utility stream operator that adds a string representation of mpls_route_via_t to the ostream.