summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Liu <yong.liu@intel.com>2015-07-24 17:14:50 +0800
committerMarvin Liu <yong.liu@intel.com>2015-07-28 13:12:45 +0800
commit0fcb1a05b2645b50bcc02ab0b530e7f4fb7d2fa8 (patch)
tree7bee7cf86e908cc33e424859d8337f1f739c249e
parent710624f991ee17908cdb1cff046098d1937462fc (diff)
downloaddts-0fcb1a05b2645b50bcc02ab0b530e7f4fb7d2fa8.zip
dts-0fcb1a05b2645b50bcc02ab0b530e7f4fb7d2fa8.tar.gz
dts-0fcb1a05b2645b50bcc02ab0b530e7f4fb7d2fa8.tar.xz
Enable ipv6 for each tester port before scan
If dts exit abnormal, tester port maybe remain ipv6 disabled. So before scan dut port, need make sure tester port ipv6 enable. Signed-off-by: Marvin Liu <yong.liu@intel.com>
-rw-r--r--framework/dut.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/dut.py b/framework/dut.py
index 722b8a7..a5c9db3 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -176,6 +176,8 @@ class Dut(Crb):
self.init_core_list()
self.pci_devices_information()
+ # make sure ipv6 enable before scan
+ self.enable_tester_ipv6()
# scan ports before restore interface
self.scan_ports()
# restore dut ports to kernel
@@ -867,7 +869,7 @@ class Dut(Crb):
port.disable_ipv6()
def enable_tester_ipv6(self):
- for tester_port in self.ports_map:
+ for tester_port in range(len(self.tester.ports_info)):
if self.tester.ports_info[tester_port]['type'] != 'ixia':
port = self.tester.ports_info[tester_port]['port']
port.enable_ipv6()