Skip to content

Commit

Permalink
tests: wait for all flows to be installed before sending packets
Browse files Browse the repository at this point in the history
Remote output flows are setup when binding of remote port is received.
Hence those flows can be setup after ports have been reported up.

- 3 HVs, 1 VIFs/HV, 1 software GW, 1 LS
- 3 HVs, 3 LS, 3 lports/LS, 1 LR
- 2 HVs, 2 LRs connected via LS, gateway router

Signed-off-by: Xavier Simonart <xsimonar@redhat.com>
Acked-by: Ales Musil <amusil@redhat.com>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
  • Loading branch information
simonartxavier authored and dceara committed Nov 17, 2023
1 parent 20c9779 commit f9ebf0c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/ovn.at
Original file line number Diff line number Diff line change
Expand Up @@ -4671,6 +4671,12 @@ OVN_POPULATE_ARP

wait_for_ports_up
check ovn-nbctl --wait=hv sync
OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv1"],["hv2"])
OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv2"],["hv1"])
OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv1"],["hv_gw"])
OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv_gw"],["hv1"])
OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv2"],["hv_gw"])
OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv_gw"],["hv2"])

# test_packet INPORT DST SRC ETHTYPE OUTPORT...
#
Expand Down Expand Up @@ -4870,6 +4876,13 @@ check ovn-nbctl --wait=hv sync
# for ARP resolution).
OVN_POPULATE_ARP

OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv1"],["hv2"])
OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv2"],["hv1"])
OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv2"],["hv3"])
OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv3"],["hv2"])
OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv1"],["hv3"])
OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv3"],["hv1"])

# test_ip INPORT SRC_MAC DST_MAC SRC_IP DST_IP OUTPORT...
#
# This shell function causes a packet to be received on INPORT. The packet's
Expand Down Expand Up @@ -7646,6 +7659,9 @@ ovn-nbctl lsp-add alice alice1 \
wait_for_ports_up
check ovn-nbctl --wait=hv sync

OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv1"],["hv2"])
OVN_WAIT_REMOTE_OUTPUT_FLOWS(["hv2"],["hv1"])

# Send ip packets between foo1 and alice1
src_mac="f00000010203"
dst_mac="000001010203"
Expand Down

0 comments on commit f9ebf0c

Please sign in to comment.