Skip to content

Commit

Permalink
Merge pull request #12346 from tomponline/tp-tests-network
Browse files Browse the repository at this point in the history
tests: Don't use lxdbr0 in network tests
  • Loading branch information
simondeziel authored Oct 5, 2023
2 parents 3879639 + 3033f57 commit b85d9e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/suites/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ test_network() {
lxc init testimage nettest

# Test DNS resolution of instance names
lxc network create lxdbr0
lxc launch testimage 0abc -n lxdbr0
lxc launch testimage def0 -n lxdbr0
v4_addr="$(lxc network get lxdbr0 ipv4.address | cut -d/ -f1)"
lxc network create lxdt$$
lxc launch testimage 0abc -n lxdt$$
lxc launch testimage def0 -n lxdt$$
v4_addr="$(lxc network get lxdt$$ ipv4.address | cut -d/ -f1)"
sleep 2
dig @"${v4_addr}" 0abc.lxd
dig @"${v4_addr}" def0.lxd
lxc delete -f 0abc
lxc delete -f def0
lxc network delete lxdbr0
lxc network delete lxdt$$

# Standard bridge with random subnet and a bunch of options
lxc network create lxdt$$
Expand Down

0 comments on commit b85d9e1

Please sign in to comment.