summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxu,gang <gangx.xu@intel.com>2017-08-24 14:56:16 +0800
committerMarvin Liu <yong.liu@intel.com>2017-08-25 22:18:21 +0800
commit151b727f5f2aef402bd15b15e0c5bc70ee86767a (patch)
treeab913622007ee4f5803403093a032d2c7f85c170
parentdfc0dffe3cab24e1ea25321f90fe514f1a73007c (diff)
downloaddts-151b727f5f2aef402bd15b15e0c5bc70ee86767a.zip
dts-151b727f5f2aef402bd15b15e0c5bc70ee86767a.tar.gz
dts-151b727f5f2aef402bd15b15e0c5bc70ee86767a.tar.xz
framework crb: fix enable ipv6 not work on Fortville
Signed-off-by: xu,gang <gangx.xu@intel.com>
-rw-r--r--framework/crb.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/crb.py b/framework/crb.py
index 00f418d..facf319 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -412,6 +412,15 @@ class Crb(object):
self.send_expect("sysctl net.ipv6.conf.%s.disable_ipv6=0" %
intf, "# ", alt_session=True)
+ out = self.send_expect(
+ "ifconfig %s" % intf, "# ", alt_session=True)
+ if "inet6" not in out:
+ self.send_expect("ifconfig %s down" %
+ intf, "# ", alt_session=True)
+ self.send_expect(
+ "ifconfig %s up" % intf, "# ", alt_session=True)
+
+
def create_file(self, contents, fileName):
"""
Create file with contents and copy it to CRB.