Skip to content

Commit

Permalink
tests: Use fmt_pkt in 1 HV, 2 LSs, 1 lport/LS, 1 LR.
Browse files Browse the repository at this point in the history
Execution time: 3.329s
Execution time on "main" branch: 2.794s

Signed-off-by: Mark Michelson <mmichels@redhat.com>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
putnopvut authored and ovsrobot committed Oct 10, 2023
1 parent c598eff commit 1a788d9
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions tests/ovn.at
Original file line number Diff line number Diff line change
Expand Up @@ -6145,11 +6145,13 @@ AT_CAPTURE_FILE([sbflows])
# Send ip packets between the two ports.

# Packet to send.
src_mac="f00000010203"
dst_mac="000000010203"
src_ip=`ip_to_hex 192 168 1 2`
dst_ip=`ip_to_hex 172 16 1 2`
packet=${dst_mac}${src_mac}08004500001c0000000040110000${src_ip}${dst_ip}0035111100080000
src_mac="f0:00:00:01:02:03"
dst_mac="00:00:00:01:02:03"
src_ip=192.168.1.2
dst_ip=172.16.1.2
packet=$(fmt_pkt "Ether(dst='${dst_mac}', src='${src_mac}')/ \
IP(src='${src_ip}', dst='${dst_ip}')/ \
UDP(sport=53, dport=4369)")
as hv1 ovs-appctl netdev-dummy/receive vif1 $packet

#Disable router R1
Expand All @@ -6161,9 +6163,11 @@ AT_CAPTURE_FILE([sbflows2])
as hv1 ovs-appctl netdev-dummy/receive vif1 $packet

# Packet to Expect
expect_src_mac="000000010204"
expect_dst_mac="f00000010204"
echo "${expect_dst_mac}${expect_src_mac}08004500001c000000003f110100${src_ip}${dst_ip}0035111100080000" > expected
expect_src_mac="00:00:00:01:02:04"
expect_dst_mac="f0:00:00:01:02:04"
echo $(fmt_pkt "Ether(dst='${expect_dst_mac}', src='${expect_src_mac}')/ \
IP(src='${src_ip}', dst='${dst_ip}', ttl=0x3f)/ \
UDP(sport=53, dport=4369)") > expected

OVN_CHECK_PACKETS([hv1/vif2-tx.pcap], [expected])

Expand Down

0 comments on commit 1a788d9

Please sign in to comment.