2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

ovn.at: Fix IPv6 periodic RA test on Windows

One issue with this test is that MSYS mangles the shorter form of the IPv6 address.
To solve this, we switch to the longer notation of it.

Another issue is that `printf` command does not add the leading `0` to the packet.
We switch to a more platform independent `awk` substitution.

Co-authored-by: Mark Michelson <mmichels@redhat.com>
Signed-off-by: Mark Michelson <mmichels@redhat.com>
Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Alin Gabriel Serdean
2018-01-14 19:05:16 +02:00
parent e5fd03e819
commit 1ea1b0d09f

View File

@@ -9312,7 +9312,7 @@ ovs-vsctl add-br br-phys
ovn_attach n1 br-phys 192.168.0.3 ovn_attach n1 br-phys 192.168.0.3
ovn-nbctl lr-add ro ovn-nbctl lr-add ro
ovn-nbctl lrp-add ro ro-sw 00:00:00:00:00:01 aef0::1/64 ovn-nbctl lrp-add ro ro-sw 00:00:00:00:00:01 aef0:0:0:0:0:0:0:1/64
ovn-nbctl ls-add sw ovn-nbctl ls-add sw
ovn-nbctl lsp-add sw sw-ro ovn-nbctl lsp-add sw sw-ro
@@ -9381,7 +9381,7 @@ construct_expected_ra() {
local icmp=8600XXXX${ra} local icmp=8600XXXX${ra}
local ip_len=$(expr ${#icmp} / 2) local ip_len=$(expr ${#icmp} / 2)
ip_len=$(printf "%0.4x" ${ip_len}) ip_len=$(echo "$ip_len" | awk '{printf "%0.4x\n", $0}')
local ip=60000000${ip_len}3aff${src_addr}${dst_addr}${icmp} local ip=60000000${ip_len}3aff${src_addr}${dst_addr}${icmp}
local eth=${dst_mac}${src_mac}86dd${ip} local eth=${dst_mac}${src_mac}86dd${ip}