test: convert TEST-35-NETWORK-GENERATOR into a unit test
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# Automatically generated by systemd-network-generator
|
||||
|
||||
[Match]
|
||||
Name=*
|
||||
|
||||
[Link]
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
||||
|
||||
[DHCP]
|
||||
@@ -0,0 +1 @@
|
||||
ip=dhcp
|
||||
@@ -0,0 +1,5 @@
|
||||
# Automatically generated by systemd-network-generator
|
||||
|
||||
[NetDev]
|
||||
Kind=bridge
|
||||
Name=bridge99
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated by systemd-network-generator
|
||||
|
||||
[Match]
|
||||
Name=bridge99
|
||||
|
||||
[Link]
|
||||
MACAddress=00:11:22:33:44:55
|
||||
MTUBytes=1530
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
||||
|
||||
[DHCP]
|
||||
@@ -0,0 +1,21 @@
|
||||
# Automatically generated by systemd-network-generator
|
||||
|
||||
[Match]
|
||||
Name=eth0
|
||||
|
||||
[Link]
|
||||
|
||||
[Network]
|
||||
DHCP=no
|
||||
DNS=10.10.10.10
|
||||
DNS=10.10.10.11
|
||||
Bridge=bridge99
|
||||
|
||||
[DHCP]
|
||||
Hostname=hogehoge
|
||||
|
||||
[Address]
|
||||
Address=192.168.0.10/24
|
||||
|
||||
[Route]
|
||||
Gateway=192.168.0.1
|
||||
@@ -0,0 +1,21 @@
|
||||
# Automatically generated by systemd-network-generator
|
||||
|
||||
[Match]
|
||||
Name=eth1
|
||||
|
||||
[Link]
|
||||
|
||||
[Network]
|
||||
DHCP=no
|
||||
DNS=10.10.10.10
|
||||
DNS=10.10.10.11
|
||||
Bridge=bridge99
|
||||
|
||||
[DHCP]
|
||||
Hostname=hogehoge
|
||||
|
||||
[Address]
|
||||
Address=192.168.0.11/24
|
||||
|
||||
[Route]
|
||||
Gateway=192.168.0.1
|
||||
@@ -0,0 +1,4 @@
|
||||
ip=192.168.0.10::192.168.0.1:255.255.255.0:hogehoge:eth0:off:10.10.10.10:10.10.10.11
|
||||
ip=192.168.0.11::192.168.0.1:255.255.255.0:hogehoge:eth1:off:10.10.10.10:10.10.10.11
|
||||
ip=bridge99:dhcp:1530:00:11:22:33:44:55
|
||||
bridge=bridge99:eth0,eth1
|
||||
@@ -0,0 +1,17 @@
|
||||
# Automatically generated by systemd-network-generator
|
||||
|
||||
[Match]
|
||||
Name=enp3s0
|
||||
|
||||
[Link]
|
||||
|
||||
[Network]
|
||||
DHCP=no
|
||||
|
||||
[DHCP]
|
||||
|
||||
[Address]
|
||||
Address=10.99.37.44/16
|
||||
|
||||
[Route]
|
||||
Gateway=10.99.10.1
|
||||
@@ -0,0 +1 @@
|
||||
root=/dev/nfs nfsroot=10.99.37.240:/srv/netroot,v3,tcp ip=10.99.37.44::10.99.10.1:255.255.0.0::enp3s0:off
|
||||
Reference in New Issue
Block a user