test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] fix bug that when tester port is IXIA should not change ipv6 setting
@ 2015-07-17  3:45 Yong Liu
  0 siblings, 0 replies; only message in thread
From: Yong Liu @ 2015-07-17  3:45 UTC (permalink / raw)
  To: dts

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

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

diff --git a/framework/dut.py b/framework/dut.py
index 2f33a51..d657fea 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -834,13 +834,15 @@ class Dut(Crb):
 
     def disable_tester_ipv6(self):
         for tester_port in self.ports_map:
-            port = self.tester.ports_info[tester_port]['port']
-            port.disable_ipv6()
+            if self.tester.ports_info[tester_port]['type'] != 'ixia':
+                port = self.tester.ports_info[tester_port]['port']
+                port.disable_ipv6()
 
     def enable_tester_ipv6(self):
         for tester_port in self.ports_map:
-            port = self.tester.ports_info[tester_port]['port']
-            port.enable_ipv6()
+            if self.tester.ports_info[tester_port]['type'] != 'ixia':
+                port = self.tester.ports_info[tester_port]['port']
+                port.enable_ipv6()
 
     def check_port_occupied(self, port):
         out = self.alt_session.send_expect('lsof -i:%d' % port, '# ')
-- 
1.9.3

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

only message in thread, other threads:[~2015-07-17  3:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-17  3:45 [dts] [PATCH] fix bug that when tester port is IXIA should not change ipv6 setting 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).