test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] fix bug that after enable ipv6, ipv6 address still not appear on FVL
@ 2015-07-14  5:15 Yong Liu
  0 siblings, 0 replies; only message in thread
From: Yong Liu @ 2015-07-14  5:15 UTC (permalink / raw)
  To: dts

From: Marvin Liu <yong.liu@intel.com>

With i40e driver version 1.2.38, sometimes need down and up the interface to
make sure ipv6 address appear.

Signed-off-by: Marvin Liu <yong.liu@intel.com>

diff --git a/framework/dts.py b/framework/dts.py
index 40a3c42..b9cd370 100644
--- a/framework/dts.py
+++ b/framework/dts.py
@@ -258,7 +258,7 @@ def dts_crbs_init(crbInst, skip_setup, read_cache, project, base_dir, nic, virtt
 
 def dts_crbs_exit():
     """
-    Remove logger handler when exit.
+    Call dut and tester exit function after execution finished
     """
     dut.crb_exit()
     tester.crb_exit()
diff --git a/framework/net_device.py b/framework/net_device.py
index a2ccc30..6796269 100644
--- a/framework/net_device.py
+++ b/framework/net_device.py
@@ -367,6 +367,10 @@ class NetDevice(object):
         """
         self.__send_expect("sysctl net.ipv6.conf.%s.disable_ipv6=0" %
                            intf, "# ")
+        # FVL interface need down and up for re-enable ipv6
+        if self.default_driver == 'i40e':
+            self.__send_expect("ifconfig %s down" % intf, "# ")
+            self.__send_expect("ifconfig %s up" % intf, "# ")
 
     def enable_ipv6_freebsd(self, intf):
         pass
@@ -374,7 +378,7 @@ class NetDevice(object):
     @nic_has_driver
     def disable_ipv6(self):
         """
-        Enable ipv6 address of specified pci device.
+        Disable ipv6 address of specified pci device.
         """
         if self.current_driver != self.default_driver:
             return
@@ -384,7 +388,7 @@ class NetDevice(object):
 
     def disable_ipv6_linux(self, intf):
         """
-        Enable ipv6 address of specified pci device on linux.
+        Disable ipv6 address of specified pci device on linux.
         """
         self.__send_expect("sysctl net.ipv6.conf.%s.disable_ipv6=1" %
                            intf, "# ")
-- 
1.9.3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-14  5:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-14  5:15 [dts] [PATCH] fix bug that after enable ipv6, ipv6 address still not appear on FVL Yong Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).