Skip to content

Commit fdb4a59

Browse files
committed
debug test
Signed-off-by: Gwendolyn <[email protected]>
1 parent c678455 commit fdb4a59

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

test/suites/network_dhcp_routes.sh

+18-13
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,29 @@ test_network_dhcp_routes() {
22
ensure_import_testimage
33
ensure_has_localhost_remote "${INCUS_ADDR}"
44

5-
# bridge network
6-
incus network create inct$$
5+
# ovn network
6+
incus network create inct$$ -t ovn network=none
7+
78
incus network set inct$$ ipv4.address 10.13.37.1/24
89
incus network set inct$$ ipv4.dhcp.routes 1.2.0.0/16,10.13.37.5,2.3.0.0/16,10.13.37.7
910

1011
incus launch testimage nettest -n inct$$
1112

12-
echo ">>>> ROUTE TABLE bridge <<<<"
13+
echo ">>>> ROUTE TABLE ovn <<<<"
1314
incus exec nettest -- ip route list
1415

1516
incus exec nettest -- ip route list | grep -q "1.2.0.0/16 via 10.13.37.5"
1617
incus exec nettest -- ip route list | grep -q "2.3.0.0/16 via 10.13.37.7"
1718

1819
incus delete nettest -f
20+
incus network delete inct$$
21+
22+
23+
# bridge network
24+
incus network create inct$$
25+
incus network set inct$$ ipv4.address 10.13.37.1/24
26+
incus network set inct$$ ipv4.dhcp.routes 1.2.0.0/16,10.13.37.5,2.3.0.0/16,10.13.37.7
27+
1928

2029
if [ -n "${INCUS_OFFLINE:-}" ]; then
2130
echo "==> SKIP: Skipping OCI tests as running offline"
@@ -35,23 +44,19 @@ test_network_dhcp_routes() {
3544
incus remote remove docker
3645
fi
3746

38-
incus network delete inct$$
39-
40-
41-
# ovn network
42-
incus network create inct$$ -t ovn network=none
43-
44-
incus network set inct$$ ipv4.address 10.13.37.1/24
45-
incus network set inct$$ ipv4.dhcp.routes 1.2.0.0/16,10.13.37.5,2.3.0.0/16,10.13.37.7
46-
4747
incus launch testimage nettest -n inct$$
4848

49-
echo ">>>> ROUTE TABLE ovn <<<<"
49+
echo ">>>> ROUTE TABLE bridge <<<<"
5050
incus exec nettest -- ip route list
5151

52+
echo ">>>> INSTANCE CONFIG <<<<"
53+
incus config show nettest
54+
5255
incus exec nettest -- ip route list | grep -q "1.2.0.0/16 via 10.13.37.5"
5356
incus exec nettest -- ip route list | grep -q "2.3.0.0/16 via 10.13.37.7"
5457

5558
incus delete nettest -f
59+
5660
incus network delete inct$$
61+
5762
}

0 commit comments

Comments
 (0)