tests: auto-generate random addresses instead of hard-coding them

The main benefit is that there is less manual work to add a
test (discovery of unique random addresses is not necessary),
but it also ensures that the tests can run on environments where the
previously hard-coded addresses were present.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2023-12-26 13:26:58 +01:00
parent 21e35358b4
commit bc4b1c5f12
37 changed files with 602 additions and 170 deletions

View File

@@ -148,8 +148,7 @@ device = vpns
# The default domain to be advertised
default-domain = example.com
ipv4-network = 192.168.1.0
ipv4-netmask = 255.255.255.0
ipv4-network = @VPNNET@
# Use the keyword local to advertise the local P-t-P address as DNS server
ipv4-dns = 192.168.1.1