test: add network template tests

This commit is contained in:
ajschroeder
2024-12-09 22:39:52 +00:00
parent 6c313c97d9
commit dbc24c6688
15 changed files with 227 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
network:
network:
version: 2
ethernets:
eth0:
dhcp4: true

View File

@@ -0,0 +1 @@
network --device=eth0 --bootproto=dhcp

View File

@@ -0,0 +1 @@
d-i netcfg/choose_interface select eth0

View File

@@ -0,0 +1,13 @@
network:
network:
version: 2
ethernets:
eth0:
dhcp4: false
addresses:
- 192.168.100.192/24
gateway4: 192.168.100.1
nameservers:
addresses:
- 192.168.100.3
- 192.168.100.1

View File

@@ -0,0 +1 @@
network --device=eth0 --bootproto=static --ip=192.168.100.192 --netmask=255.255.255.0 --gateway=192.168.100.1 --nameserver=192.168.100.3,192.168.100.1

View File

@@ -0,0 +1,7 @@
d-i netcfg/choose_interface select eth0
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/get_ipaddress string 192.168.100.192
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.100.1
d-i netcfg/get_nameservers string 192.168.100.3 192.168.100.1
d-i netcfg/confirm_static boolean true