* [dts] [PATCH V1] fix enable ipv6 no work
@ 2017-08-24 6:56 xu,gang
2017-08-25 14:12 ` Liu, Yong
0 siblings, 1 reply; 3+ messages in thread
From: xu,gang @ 2017-08-24 6:56 UTC (permalink / raw)
To: dts; +Cc: xu,gang
sometimes enable ipv6 no working, need restart interface
Signed-off-by: xu,gang <gangx.xu@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] fix enable ipv6 no work
2017-08-24 6:56 [dts] [PATCH V1] fix enable ipv6 no work xu,gang
@ 2017-08-25 14:12 ` Liu, Yong
2017-08-25 14:19 ` Liu, Yong
0 siblings, 1 reply; 3+ messages in thread
From: Liu, Yong @ 2017-08-25 14:12 UTC (permalink / raw)
To: xu,gang, dts
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@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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] fix enable ipv6 no work
2017-08-25 14:12 ` Liu, Yong
@ 2017-08-25 14:19 ` Liu, Yong
0 siblings, 0 replies; 3+ messages in thread
From: Liu, Yong @ 2017-08-25 14:19 UTC (permalink / raw)
To: xu,gang, dts
Sorry gang, I remembered that Fortville driver need restart interface.
Your patch is applied.
Thanks,
Marvin
On 08/25/2017 10:12 PM, Liu, Yong wrote:
> 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@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.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-25 5:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-24 6:56 [dts] [PATCH V1] fix enable ipv6 no work xu,gang
2017-08-25 14:12 ` Liu, Yong
2017-08-25 14:19 ` Liu, Yong
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).