* [dts] [PATCH] Enable ipv6 for each tester port before scan
@ 2015-07-24 9:14 Yong Liu
0 siblings, 0 replies; only message in thread
From: Yong Liu @ 2015-07-24 9:14 UTC (permalink / raw)
To: dts
From: Marvin Liu <yong.liu@intel.com>
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>
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()
--
1.9.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-24 9:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-24 9:14 [dts] [PATCH] Enable ipv6 for each tester port before scan 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).