@@ -5986,6 +5986,7 @@ AT_CLEANUP
OVN_FOR_EACH_NORTHD([
AT_SETUP([1 HV, 1 LS, 2 lport/LS, 1 LR])
AT_KEYWORDS([router-admin-state])
+AT_SKIP_IF([test $HAVE_SCAPY = no])
ovn_start
# Logical network:
@@ -6035,11 +6036,13 @@ check ovn-nbctl --wait=hv sync
# 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
@@ -6076,9 +6079,11 @@ as hv1 ovs-ofctl dump-flows br-int
as hv1 ovs-appctl netdev-dummy/receive vif1 $packet
# Packet to Expect
-expect_src_mac="000000010203"
-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:03"
+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])
Execution time: 3.413s Execution time on "main" branch: 2.675s Signed-off-by: Mark Michelson <mmichels@redhat.com> --- tests/ovn.at | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-)