diff mbox

[ovs-dev,V4,17/20] ovs-ofctl.at: Prevent msys from getting confused with ipv6 address.

Message ID 508339EC0242094682895ED3EC4EBA312E5454C5@CBSEX1.cloudbase.local
State Not Applicable
Headers show

Commit Message

Paul Boca June 28, 2016, 3:18 p.m. UTC
Hi!

Thanks for the review!
Yes, the fullform of ::0/0 is 0:0:0:0:0:0:0:0/0, I think I copied the IP from your older patch.
The test didn’t fail even if I set the wrong fullform, because of the mask which is 0.

I will send another version as soon as more patches from this series are reviewed (to not spam the ML).

Thanks,
Paul

From: Guru Shetty [mailto:guru@ovn.org]

Sent: Tuesday, June 28, 2016 5:48 PM
To: Paul Boca
Cc: dev@openvswitch.org
Subject: Re: [ovs-dev] [PATCH V4 17/20] ovs-ofctl.at: Prevent msys from getting confused with ipv6 address.



On 26 June 2016 at 05:12, Paul Boca <pboca@cloudbasesolutions.com<mailto:pboca@cloudbasesolutions.com>> wrote:
msys converts ::0/0 into ;c:\MinGW\msys\1.0\1.

To prevent this, use fullform ipv6 address of the form 0:0:0:0:0:0:0:1 instead.

Isn't the fullform of ::0/0  0:0:0:0:0:0:0:0/0 and not 0:0:0:0:0:0:0:1/0 ?

Signed-off-by: Paul-Daniel Boca <pboca@cloudbasesolutions.com<mailto:pboca@cloudbasesolutions.com>>

---
V3: Initial commit
V4: No changes
---
 tests/ovn-nbctl.at<http://ovn-nbctl.at> | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
2.7.2.windows.1
_______________________________________________
dev mailing list
dev@openvswitch.org<mailto:dev@openvswitch.org>
http://openvswitch.org/mailman/listinfo/dev

Comments

Gurucharan Shetty June 28, 2016, 3:38 p.m. UTC | #1
On 28 June 2016 at 08:18, Paul Boca <pboca@cloudbasesolutions.com> wrote:

> Hi!
>
>
>
> Thanks for the review!
>
> Yes, the fullform of ::0/0 is 0:0:0:0:0:0:0:0/0, I think I copied the IP
> from your older patch.
>
> The test didn’t fail even if I set the wrong fullform, because of the mask
> which is 0.
>

>
> I will send another version as soon as more patches from this series are
> reviewed (to not spam the ML).
>
Since this fixes a test failure, I applied this by making the necessary
changes.

Any currently failing tests are always a higher priority. So please do not
worry about sending new versions. If you keep them in a different series as
the python ones, it will catch more attention.

>
>
> Thanks,
>
> Paul
>
>
>
> *From:* Guru Shetty [mailto:guru@ovn.org]
> *Sent:* Tuesday, June 28, 2016 5:48 PM
> *To:* Paul Boca
> *Cc:* dev@openvswitch.org
> *Subject:* Re: [ovs-dev] [PATCH V4 17/20] ovs-ofctl.at: Prevent msys from
> getting confused with ipv6 address.
>
>
>
>
>
>
>
> On 26 June 2016 at 05:12, Paul Boca <pboca@cloudbasesolutions.com> wrote:
>
> msys converts ::0/0 into ;c:\MinGW\msys\1.0\1.
>
> To prevent this, use fullform ipv6 address of the form 0:0:0:0:0:0:0:1
> instead.
>
>
>
> Isn't the fullform of ::0/0  0:0:0:0:0:0:0:0/0 and not 0:0:0:0:0:0:0:1/0 ?
>
>
> Signed-off-by: Paul-Daniel Boca <pboca@cloudbasesolutions.com>
> ---
> V3: Initial commit
> V4: No changes
> ---
>  tests/ovn-nbctl.at | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/ovn-nbctl.at b/tests/ovn-nbctl.at
> index 91d482b..fd67c6d 100644
> --- a/tests/ovn-nbctl.at
> +++ b/tests/ovn-nbctl.at
> @@ -407,7 +407,7 @@ AT_CHECK([ovn-nbctl lr-route-list lr0], [0], [dnl
>  ])
>
>  dnl Check IPv6 routes
> -AT_CHECK([ovn-nbctl lr-route-add lr0 ::/0 2001:0db8:0:f101::1])
> +AT_CHECK([ovn-nbctl lr-route-add lr0 0:0:0:0:0:0:0:1/0
> 2001:0db8:0:f101::1])
>  AT_CHECK([ovn-nbctl lr-route-add lr0 2001:0db8:0::/64 2001:0db8:0:f102::1
> lp0])
>  AT_CHECK([ovn-nbctl lr-route-add lr0 2001:0db8:1::/64
> 2001:0db8:0:f103::1])
>
> @@ -434,7 +434,7 @@ dnl Check IPv4 and IPv6 routes
>  AT_CHECK([ovn-nbctl lr-route-add lr0 0.0.0.0/0 192.168.0.1])
>  AT_CHECK([ovn-nbctl lr-route-add lr0 10.0.1.1/24 11.0.1.1 lp0])
>  AT_CHECK([ovn-nbctl lr-route-add lr0 10.0.0.1/24 11.0.0.1])
> -AT_CHECK([ovn-nbctl lr-route-add lr0 ::/0 2001:0db8:0:f101::1])
> +AT_CHECK([ovn-nbctl lr-route-add lr0 0:0:0:0:0:0:0:1/0
> 2001:0db8:0:f101::1])
>  AT_CHECK([ovn-nbctl lr-route-add lr0 2001:0db8:0::/64 2001:0db8:0:f102::1
> lp0])
>  AT_CHECK([ovn-nbctl lr-route-add lr0 2001:0db8:1::/64
> 2001:0db8:0:f103::1])
>
> --
> 2.7.2.windows.1
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>
>
>
diff mbox

Patch

diff --git a/tests/ovn-nbctl.at<http://ovn-nbctl.at> b/tests/ovn-nbctl.at<http://ovn-nbctl.at>
index 91d482b..fd67c6d 100644
--- a/tests/ovn-nbctl.at<http://ovn-nbctl.at>
+++ b/tests/ovn-nbctl.at<http://ovn-nbctl.at>
@@ -407,7 +407,7 @@  AT_CHECK([ovn-nbctl lr-route-list lr0], [0], [dnl
 ])

 dnl Check IPv6 routes
-AT_CHECK([ovn-nbctl lr-route-add lr0 ::/0 2001:0db8:0:f101::1])
+AT_CHECK([ovn-nbctl lr-route-add lr0 0:0:0:0:0:0:0:1/0 2001:0db8:0:f101::1])
 AT_CHECK([ovn-nbctl lr-route-add lr0 2001:0db8:0::/64 2001:0db8:0:f102::1 lp0])
 AT_CHECK([ovn-nbctl lr-route-add lr0 2001:0db8:1::/64 2001:0db8:0:f103::1])

@@ -434,7 +434,7 @@  dnl Check IPv4 and IPv6 routes
 AT_CHECK([ovn-nbctl lr-route-add lr0 0.0.0.0/0<http://0.0.0.0/0> 192.168.0.1])
 AT_CHECK([ovn-nbctl lr-route-add lr0 10.0.1.1/24<http://10.0.1.1/24> 11.0.1.1 lp0])
 AT_CHECK([ovn-nbctl lr-route-add lr0 10.0.0.1/24<http://10.0.0.1/24> 11.0.0.1])
-AT_CHECK([ovn-nbctl lr-route-add lr0 ::/0 2001:0db8:0:f101::1])
+AT_CHECK([ovn-nbctl lr-route-add lr0 0:0:0:0:0:0:0:1/0 2001:0db8:0:f101::1])
 AT_CHECK([ovn-nbctl lr-route-add lr0 2001:0db8:0::/64 2001:0db8:0:f102::1 lp0])
 AT_CHECK([ovn-nbctl lr-route-add lr0 2001:0db8:1::/64 2001:0db8:0:f103::1])