Skip to content

Commit

Permalink
Test OVN external addresses show on lxc network list-allocations (#308
Browse files Browse the repository at this point in the history
)

Depending on canonical/lxd#14210
  • Loading branch information
tomponline authored Nov 5, 2024
2 parents d5a2f52 + 276bc70 commit 2c3c5db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/network-ovn
Original file line number Diff line number Diff line change
Expand Up @@ -2116,6 +2116,14 @@ ovn_leases_tests() {

lxc delete -f c1

if hasNeededAPIExtension network_allocations_ovn_uplink; then
echo "==> Check OVN external addresses show on lxc network list-allocations"
ovn_ext_ipv4="$(lxc network get ovn0 volatile.network.ipv4.address)"
ovn_ext_ipv6="$(lxc network get ovn0 volatile.network.ipv6.address)"
lxc network list-allocations --format csv | grep -F "/1.0/networks/ovn0,${ovn_ext_ipv4}"
lxc network list-allocations --format csv | grep -F "/1.0/networks/ovn0,${ovn_ext_ipv6}"
fi

echo "==> Ensure the instance gets static ipv4 and dynamic ipv6 leases and that they"
echo "==> do not disappear after restart"
lxc launch "${IMAGE}" c1 -s default -n ovn0 -d eth0,ipv4.address=10.10.11.15
Expand Down

0 comments on commit 2c3c5db

Please sign in to comment.