Tunnel decapsulation group management.
This module manages tunnel decapsulation for traffic arriving at the switch (on any interface). This allows the switch to act as a tunnel endpoint.
By configuring a “decap group”, the switch will decapsulate traffic matching the specified outer (tunnel) header destination IP address and IP protocol. Presently only GRE traffic (protocol 47) is supported by decap groups. Traffic arriving at the switch matching the group’s parameters will be decapsulated and forwarded normally based on the inner protocol headers.
In this example, a decap group named “gre_tunnel1” is configured for GRE traffic arriving at the switch with a tunnel destination address of 172.12.0.1. That address may either be bound to a local switch interface or announced by the switch in routing protocols.
// Configures a decapsulation group to unwrap received GRE traffic eos::decap_group_t tunnel("gre_tunnel1", eos::ip_addr_t("172.12.0.1"), eos::PROTOCOL_TYPE_GRE); mgr->decap_group_set(tunnel);
Private Functions
Friends
A manager of ‘ip decap-group’ 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
Iterates over all the decap groups currently configured.
Adds the specified decap group to the system configuration Create a new or updates an existing decap group with the same name
Removes the named decap group from the configuration if it exists.
Protected Functions
Private Members
Enums
Inner (IP) protocol to match for a decap group, only the GRE protocol is presently supported.
Values:
An ip decap-group configuration model. Note that once created, the group_name member cannot be changed.
Public Functions
Getter for ‘group_name’: the decap-group name, must be supplied. Note that the decap group namespace is per-VRF, that is, the vrf_name scopes the decap- group name.
Getter for ‘destination_addr’: match destination IP on the outermost IP header.
Setter for ‘destination_addr’.
Getter for ‘protocol_type’: match this outer IP protocol to decap.
Setter for ‘protocol_type’.
Getter for ‘persistent’: if true, the decap group is included in the running- config. Defaults to false.
Setter for ‘persistent’.
Returns a string representation of the current object’s values.
Private Members
Friends
A utility stream operator that adds a string representation of decap_group_t to the ostream.