[dts] [PATCH V1] fix enable ipv6 no work
xu,gang
gangx.xu at intel.com
Thu Aug 24 08:56:16 CEST 2017
sometimes enable ipv6 no working, need restart interface
Signed-off-by: xu,gang <gangx.xu at intel.com>
---
framework/crb.py | 9 +++++++++
1 file changed, 9 insertions(+)
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.
--
1.9.3
More information about the dts
mailing list