This patchset adds two new classes to ENRT recipe package, the
BaseTunnelRecipe and GreTunnelRecipe.
The BaseTunnelRecipe extends the BaremetalEnrtRecipe class and defines a
common API for recipes that want to configure any type of tunnels.
The API consists of three methods.
The configure_underlying_network() involves configuration of the network
stack below the tunnel and returning back the endpoints that should be
connected by the tunnel.
The create_tunnel() then takes care of configuration of the tunnel between
The get_packet_assert_config() method supports the
PacketAssertTestAndEvaluate class by defining the packet capture filter
and grep patterns to test the functionality of a tunnel.
The second patch in the series adds an implementation of a recipe for
the GRE tunnel.
Both patches also extends the LNST documentation.
Jan Tluka (2):
Recipes.ENRT: add BaseTunnelRecipe
Recipes.ENRT: add GreTunnelRecipe
docs/source/base_enrt_tunnel_class.rst | 6 +
docs/source/enrt_recipes.rst | 1 +
docs/source/specific_scenarios.rst | 1 +
lnst/Recipes/ENRT/BaseTunnelRecipe.py | 157 ++++++++++++++++++++++++
lnst/Recipes/ENRT/GreTunnelRecipe.py | 160 +++++++++++++++++++++++++
lnst/Recipes/ENRT/__init__.py | 2 +
6 files changed, 327 insertions(+)
create mode 100644 docs/source/base_enrt_tunnel_class.rst
create mode 100644 lnst/Recipes/ENRT/BaseTunnelRecipe.py
create mode 100644 lnst/Recipes/ENRT/GreTunnelRecipe.py