This replaces the CommonHWConfigMixin with specific mixins.
Signed-off-by: Jan Tluka jtluka@redhat.com --- lnst/Recipes/ENRT/Ip6GreTunnelRecipe.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/lnst/Recipes/ENRT/Ip6GreTunnelRecipe.py b/lnst/Recipes/ENRT/Ip6GreTunnelRecipe.py index 67fc8fc4..5e3ea1b7 100644 --- a/lnst/Recipes/ENRT/Ip6GreTunnelRecipe.py +++ b/lnst/Recipes/ENRT/Ip6GreTunnelRecipe.py @@ -10,16 +10,19 @@ from lnst.Devices import Ip6GreDevice 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 Ip6GreTunnelRecipe( - CommonHWSubConfigMixin, OffloadSubConfigMixin, BaseTunnelRecipe + MTUHWConfigMixin, PauseFramesHWConfigMixin, OffloadSubConfigMixin, BaseTunnelRecipe ): """ This class implements a recipe that configures a simple IP6GRE tunnel between @@ -185,3 +188,11 @@ class Ip6GreTunnelRecipe( @property def offload_nics(self): return [self.matched.host1.eth0, self.matched.host2.eth0] + + @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.gre6_tunnel, self.matched.host2.gre6_tunnel]