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 endpoints.
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.
v2:
- moved CommonHWSubConfigMixin and OffloadSubConfigMixin from
BaseTunnelRecipe to GreTunnelRecipe
- wait_tentative_ips moved to configure_underlying_network() and
create_tunnel()
- removed the endpoints parameter of create_tunnel() and added the tunnel
endpoints to the configuration object
- reversed the order of device deletion in test_wide_deconfiguration()
- added offload_nics property to GreTunnelRecipe
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 | 140 +++++++++++++++++++
lnst/Recipes/ENRT/GreTunnelRecipe.py | 181 +++++++++++++++++++++++++
lnst/Recipes/ENRT/__init__.py | 2 +
6 files changed, 331 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
--
2.26.3