[dts] [PATCH V1] fix enable ipv6 no work
Liu, Yong
yong.liu at intel.com
Fri Aug 25 16:12:20 CEST 2017
Gang,
Could you please give the OS type and kernel driver version?
As I known, there's no need to up interface after enable ipv6.
Thanks.
Marvin
On 08/24/2017 02:56 PM, xu,gang wrote:
> 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.
More information about the dts
mailing list