mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: Add network XML to XML tests.
This commit is contained in:
10
tests/networkxml2xmlout/isolated-network.xml
Normal file
10
tests/networkxml2xmlout/isolated-network.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<network>
|
||||
<name>private</name>
|
||||
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
|
||||
<bridge name='virbr2' stp='on' delay='0' />
|
||||
<ip address='192.168.152.1' netmask='255.255.255.0'>
|
||||
<dhcp>
|
||||
<range start='192.168.152.2' end='192.168.152.254' />
|
||||
</dhcp>
|
||||
</ip>
|
||||
</network>
|
||||
13
tests/networkxml2xmlout/nat-network.xml
Normal file
13
tests/networkxml2xmlout/nat-network.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<network>
|
||||
<name>default</name>
|
||||
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
|
||||
<forward dev='eth1' mode='nat'/>
|
||||
<bridge name='virbr0' stp='on' delay='0' />
|
||||
<ip address='192.168.122.1' netmask='255.255.255.0'>
|
||||
<dhcp>
|
||||
<range start='192.168.122.2' end='192.168.122.254' />
|
||||
<host mac='00:16:3e:77:e2:ed' name='a.example.com' ip='192.168.122.10' />
|
||||
<host mac='00:16:3e:3e:a9:1a' name='b.example.com' ip='192.168.122.11' />
|
||||
</dhcp>
|
||||
</ip>
|
||||
</network>
|
||||
14
tests/networkxml2xmlout/netboot-network.xml
Normal file
14
tests/networkxml2xmlout/netboot-network.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<network>
|
||||
<name>netboot</name>
|
||||
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
|
||||
<forward mode='nat'/>
|
||||
<bridge name='virbr1' stp='off' delay='1' />
|
||||
<domain name='example.com'/>
|
||||
<ip address='192.168.122.1' netmask='255.255.255.0'>
|
||||
<tftp root='/var/lib/tftproot' />
|
||||
<dhcp>
|
||||
<range start='192.168.122.2' end='192.168.122.254' />
|
||||
<bootp file='pxeboot.img' />
|
||||
</dhcp>
|
||||
</ip>
|
||||
</network>
|
||||
11
tests/networkxml2xmlout/routed-network.xml
Normal file
11
tests/networkxml2xmlout/routed-network.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<network>
|
||||
<name>local</name>
|
||||
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
|
||||
<forward dev='eth1' mode='route'/>
|
||||
<bridge name='virbr1' stp='on' delay='0' />
|
||||
<ip address='192.168.122.1' netmask='255.255.255.0'>
|
||||
<dhcp>
|
||||
<range start='192.168.122.2' end='192.168.122.254' />
|
||||
</dhcp>
|
||||
</ip>
|
||||
</network>
|
||||
Reference in New Issue
Block a user