Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Recipes/ENRT/Ip6TnlTunnelRecipe.py | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/lnst/Recipes/ENRT/Ip6TnlTunnelRecipe.py
b/lnst/Recipes/ENRT/Ip6TnlTunnelRecipe.py
index eaa9cba4..87bd6cba 100644
--- a/lnst/Recipes/ENRT/Ip6TnlTunnelRecipe.py
+++ b/lnst/Recipes/ENRT/Ip6TnlTunnelRecipe.py
@@ -8,9 +8,13 @@ from lnst.RecipeCommon.Ping.PingEndpoints import PingEndpoints
from lnst.RecipeCommon.PacketAssert import PacketAssertConf
from lnst.Common.Parameters import StrParam, ChoiceParam
from lnst.Recipes.ENRT.BaseTunnelRecipe import BaseTunnelRecipe
+from lnst.Recipes.ENRT.ConfigMixins.MTUHWConfigMixin import MTUHWConfigMixin
+from lnst.Recipes.ENRT.ConfigMixins.PauseFramesHWConfigMixin import (
+ PauseFramesHWConfigMixin,
+)
-class Ip6TnlTunnelRecipe(BaseTunnelRecipe):
+class Ip6TnlTunnelRecipe(MTUHWConfigMixin, PauseFramesHWConfigMixin, BaseTunnelRecipe):
"""
This class implements a recipe that configures a simple Ip6Tnl tunnel between
two hosts.
@@ -114,11 +118,7 @@ class Ip6TnlTunnelRecipe(BaseTunnelRecipe):
[PingEndpoints(self.matched.host1.ip6tnl, self.matched.host2.ip6tnl)]
"""
- return [
- PingEndpoints(
- self.matched.host1.ip6tnl, self.matched.host2.ip6tnl
- )
- ]
+ return [PingEndpoints(self.matched.host1.ip6tnl, self.matched.host2.ip6tnl)]
def get_packet_assert_config(self, ping_config):
"""
@@ -152,3 +152,11 @@ class Ip6TnlTunnelRecipe(BaseTunnelRecipe):
pa_config = PacketAssertConf(m2, m2_carrier, **pa_kwargs)
return pa_config
+
+ @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.ip6tnl, self.matched.host2.ip6tnl]
--
2.26.3