Skip to content

Commit

Permalink
tests: fixed multiple ovn-ic unit tests
Browse files Browse the repository at this point in the history
- ovn-ic -- gateway sync
- ovn-ic -- route sync
- ovn-ic -- route sync -- route tables
- ovn-ic -- route sync -- IPv6 route tables

Signed-off-by: Xavier Simonart <xsimonar@redhat.com>
Signed-off-by: Mark Michelson <mmichels@redhat.com>
  • Loading branch information
simonartxavier authored and putnopvut committed Aug 4, 2023
1 parent b60708f commit 5d7ab0a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/ovn-ic.at
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,10 @@ is-remote=true
])

ovs-vsctl set open . external-ids:ovn-is-interconn=false
AT_CHECK([ovn_as az2 ovn-sbctl show], [0], [dnl
])
OVS_WAIT_UNTIL([test "$(ovn_as az2 ovn-sbctl show)" = ""])

ovs-vsctl set open . external-ids:ovn-is-interconn=true
AT_CHECK([ovn_as az2 ovn-sbctl show | grep gw1], [0], [ignore])
OVS_WAIT_UNTIL([ovn_as az2 ovn-sbctl show | grep gw1])

OVN_CLEANUP_SBOX(gw1)
AT_CHECK([ovn_as az2 ovn-sbctl show], [0], [dnl
Expand Down Expand Up @@ -397,6 +396,7 @@ for i in 1 2; do
# Enable route advertising at AZ level
ovn-nbctl set nb_global . options:ic-route-adv=true

OVS_WAIT_UNTIL([ovn-nbctl show | grep ts1])
# Create LRP and connect to TS
ovn-nbctl lr-add lr$i
ovn-nbctl lrp-add lr$i lrp-lr$i-ts1 aa:aa:aa:aa:aa:0$i 169.254.100.$i/24
Expand Down Expand Up @@ -641,6 +641,8 @@ for i in 1 2; do
# Enable route advertising at AZ level
ovn-nbctl set nb_global . options:ic-route-adv=true

OVS_WAIT_UNTIL([ovn-nbctl show | grep ts1])

# Create LRP and connect to TS
ovn-nbctl lr-add lr$i
ovn-nbctl lrp-add lr$i lrp-lr$i-ts1 aa:aa:aa:aa:aa:0$i 2001:db8:1::$i/64
Expand Down Expand Up @@ -690,6 +692,8 @@ for i in 1 2; do
# Enable route advertising at AZ level
ovn-nbctl set nb_global . options:ic-route-adv=true

OVS_WAIT_UNTIL([ovn-nbctl show | grep ts1])

# Create LRP and connect to TS
ovn-nbctl lr-add lr$i
ovn-nbctl lrp-add lr$i lrp-lr$i-ts1 aa:aa:aa:aa:aa:0$i 169.254.100.$i/24
Expand Down

0 comments on commit 5d7ab0a

Please sign in to comment.