summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Liu <yong.liu@intel.com>2015-07-17 11:45:58 +0800
committerMarvin Liu <yong.liu@intel.com>2015-07-17 14:25:44 +0800
commitfe541852030331bb32295b3674b9dc9e6ba6f86f (patch)
tree8401527cfef6d649db9f3817fcf5a5085a7cd17c
parent150a46b76ef6e963c453da5402174b8dd7a1b13c (diff)
downloaddts-fe541852030331bb32295b3674b9dc9e6ba6f86f.zip
dts-fe541852030331bb32295b3674b9dc9e6ba6f86f.tar.gz
dts-fe541852030331bb32295b3674b9dc9e6ba6f86f.tar.xz
fix bug that when tester port is IXIA should not change ipv6 setting
Signed-off-by: Marvin Liu <yong.liu@intel.com>
-rw-r--r--framework/dut.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/framework/dut.py b/framework/dut.py
index 39e0044..722b8a7 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -862,13 +862,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, '# ')