On Fri, Apr 23, 2021 at 12:06:13PM +0200, Jan Tluka wrote:
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
_______________________________________________
LNST-developers mailing list -- lnst-developers(a)lists.fedorahosted.org
To unsubscribe send an email to lnst-developers-leave(a)lists.fedorahosted.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedorahosted.org/archives/list/lnst-developers@lists.fedora...
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
pushed.
-Ondrej