summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Liu <yong.liu@intel.com>2017-08-25 22:20:11 +0800
committerMarvin Liu <yong.liu@intel.com>2017-08-25 22:20:11 +0800
commit93f58a00b70ed830ddb7d948e6ebb27604f188a4 (patch)
treeab913622007ee4f5803403093a032d2c7f85c170
parent7650dd07f3340518d268802c697ef241899ac110 (diff)
parent151b727f5f2aef402bd15b15e0c5bc70ee86767a (diff)
downloaddts-17.08.zip
dts-17.08.tar.gz
dts-17.08.tar.xz
Merge branch 'master' into v17.0817.08
-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.