Skip to content

Commit 5fd468f

Browse files
committed
tests: update network_forward to test BGP listener startup
Signed-off-by: Nikita Mezhenskyi <[email protected]>
1 parent 4efe496 commit 5fd468f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/suites/network_forward.sh

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ test_network_forward() {
99
ipv4.address=192.0.2.1/24 \
1010
ipv6.address=fd42:4242:4242:1010::1/64
1111

12+
# Enable the BGP listener on the bridge itself
13+
lxc config set core.bgp_address=192.0.2.1:8874
14+
lxc config set core.bgp_asn=65536
15+
lxc config set core.bgp_routerid=192.0.2.1
16+
17+
# Check that the listener survives a restart of LXD
18+
shutdown_lxd "${LXD_DIR}"
19+
respawn_lxd "${LXD_DIR}" true
20+
1221
# Check creating a forward with an unspecified IPv4 address fails.
1322
! lxc network forward create "${netName}" 0.0.0.0 || false
1423

0 commit comments

Comments
 (0)