[V1] tests/kni: enable ipv6

Message ID 20220803181512.13078-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/kni: enable ipv6 |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test success Testing OK

Commit Message

Jiale, SongX Aug. 3, 2022, 6:15 p.m. UTC
  the case need ipv6 support, so need make sure that IPv6 is enabled.

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 tests/TestSuite_kni.py | 4 ++++
 1 file changed, 4 insertions(+)
  

Comments

Tu, Lijuan Aug. 24, 2022, 2:41 a.m. UTC | #1
On Wed,  3 Aug 2022 18:15:12 +0000, Jiale Song <songx.jiale@intel.com> wrote:
> the case need ipv6 support, so need make sure that IPv6 is enabled.
> 
> Signed-off-by: Jiale Song <songx.jiale@intel.com>

Acked-by: Lijuan Tu <lijuan.tu@intel.com>
Applied, thanks
  

Patch

diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py
index e04a0cbc..0a8c3009 100644
--- a/tests/TestSuite_kni.py
+++ b/tests/TestSuite_kni.py
@@ -485,6 +485,8 @@  class TestKni(TestCase):
             self.output_path = os.sep.join([cur_path, self.logger.log_path])
         # create an instance to set stream field setting
         self.pktgen_helper = PacketGeneratorHelper()
+        # enable dut ipv6
+        self.dut.enable_ipv6("all")
 
     def set_up(self):
         """
@@ -1562,3 +1564,5 @@  class TestKni(TestCase):
         """
         self.dut.kill_all()
         self.dut.send_expect("rmmod rte_kni", "# ", 10)
+        # disable dut ipv6
+        self.dut.disable_ipv6("all")