Skip to content

Commit

Permalink
tests: fixed "send gratuitous ARP for NAT rules on HA distributed rou…
Browse files Browse the repository at this point in the history
…ter"

Signed-off-by: Xavier Simonart <xsimonar@redhat.com>
Acked-by: Ales Musil <amusil@redhat.com>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
(cherry picked from commit 109f268)
  • Loading branch information
simonartxavier authored and dceara committed Jul 5, 2023
1 parent 11b7297 commit 03129d1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/ovn.at
Original file line number Diff line number Diff line change
Expand Up @@ -13462,9 +13462,13 @@ options:rxq_pcap=dummy-rx.pcap
options:rxq_pcap=${pcap_file}-rx.pcap
}

as hv1 reset_pcap_file snoopvif hv1/snoopvif
# reset hv1/snoopvif after hv2/br-phys_n1 and hv3/br-phys_n1 as we wait
# for packets to be received on hv1/snoopvif-tx.
# Otherwise, after we received a packet on hv1/snoopvif it might get reset
# in hv2/br-phys_n1 or hv3/br-phys_n1.
as hv2 reset_pcap_file br-phys_n1 hv2/br-phys_n1
as hv3 reset_pcap_file br-phys_n1 hv3/br-phys_n1
as hv1 reset_pcap_file snoopvif hv1/snoopvif
# add nat-addresses option
ovn-nbctl --wait=hv lsp-set-options lrp0-rp router-port=lrp0 nat-addresses="router"

Expand Down Expand Up @@ -13510,10 +13514,9 @@ ovn-nbctl --wait=hv \
name=outside_gw2 chassis_name=hv3 priority=10 -- \
set Logical_Router_Port lrp0 'gateway_chassis=[@gc0,@gc1]'


as hv1 reset_pcap_file snoopvif hv1/snoopvif
as hv2 reset_pcap_file br-phys_n1 hv2/br-phys_n1
as hv3 reset_pcap_file br-phys_n1 hv3/br-phys_n1
as hv1 reset_pcap_file snoopvif hv1/snoopvif

trim_zeros() {
sed 's/\(00\)\{1,\}$//'
Expand Down Expand Up @@ -13552,9 +13555,9 @@ ovn-nbctl --wait=hv clear logical_switch_port lrp0-rp options
OVS_WAIT_UNTIL([test 0 = `ovn-sbctl --bare --columns nat_addresses find port_binding \
logical_port=lrp0-rp | grep is_chassis | wc -l`])

as hv1 reset_pcap_file snoopvif hv1/snoopvif
as hv2 reset_pcap_file br-phys_n1 hv2/br-phys_n1
as hv3 reset_pcap_file br-phys_n1 hv3/br-phys_n1
as hv1 reset_pcap_file snoopvif hv1/snoopvif

ovn-nbctl --wait=hv lsp-set-options lrp0-rp router-port=lrp0 nat-addresses="router"

Expand Down

0 comments on commit 03129d1

Please sign in to comment.