This replaces the CommonHWConfigMixin with specific mixins.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Recipes/ENRT/GreTunnelOverBondRecipe.py | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/lnst/Recipes/ENRT/GreTunnelOverBondRecipe.py
b/lnst/Recipes/ENRT/GreTunnelOverBondRecipe.py
index 3aa00b87..ec6af8e5 100644
--- a/lnst/Recipes/ENRT/GreTunnelOverBondRecipe.py
+++ b/lnst/Recipes/ENRT/GreTunnelOverBondRecipe.py
@@ -10,16 +10,19 @@ from lnst.Devices import GreDevice, BondDevice
from lnst.RecipeCommon.Ping.PingEndpoints import PingEndpoints
from lnst.RecipeCommon.PacketAssert import PacketAssertConf
from lnst.Recipes.ENRT.BaseTunnelRecipe import BaseTunnelRecipe
+from lnst.Recipes.ENRT.ConfigMixins.MTUHWConfigMixin import (
+ MTUHWConfigMixin,
+)
from lnst.Recipes.ENRT.ConfigMixins.OffloadSubConfigMixin import (
OffloadSubConfigMixin,
)
-from lnst.Recipes.ENRT.ConfigMixins.CommonHWSubConfigMixin import (
- CommonHWSubConfigMixin,
+from lnst.Recipes.ENRT.ConfigMixins.PauseFramesHWConfigMixin import (
+ PauseFramesHWConfigMixin,
)
class GreTunnelOverBondRecipe(
- CommonHWSubConfigMixin, OffloadSubConfigMixin, BaseTunnelRecipe
+ MTUHWConfigMixin, PauseFramesHWConfigMixin, OffloadSubConfigMixin, BaseTunnelRecipe
):
"""
This class implements a recipe that configures a GRE tunnel between
@@ -225,3 +228,11 @@ class GreTunnelOverBondRecipe(
@property
def offload_nics(self):
return [self.matched.host1.bond, self.matched.host2.bond]
+
+ @property
+ def pause_frames_dev_list(self):
+ return [self.matched.host1.eth0, self.matched.host2.eth0]
+
+ @property
+ def mtu_hw_config_dev_list(self):
+ return [self.matched.host1.gre_tunnel, self.matched.host2.gre_tunnel]
--
2.26.3