libvirt/tests/networkxml2confdata/leasetime-seconds.xml
Julio Faracco 7e5a40fd0f tests: Add tests for <lease/> to cover dnsmasq settings
New tests are required to cover some new XML syntax entry for
<lease/> option. This includes schema testing and other features
like unit attribute and lease value. This commit includes hostsfile
checks adding new files for each test case that is manipulating <host/>
tag.

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2020-04-23 10:59:33 +02:00

22 lines
694 B
XML

<network>
<name>default</name>
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
<forward dev='eth1' mode='nat'>
<interface dev='eth1'/>
</forward>
<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'>
<lease expiry='200' unit='seconds'/>
</range>
<host mac='00:16:3e:77:e2:ed' name='a.example.com' ip='192.168.122.10'>
<lease expiry='300' unit='seconds'/>
</host>
<host mac='00:16:3e:3e:a9:1a' name='b.example.com' ip='192.168.122.11'>
<lease expiry='400' unit='seconds'/>
</host>
</dhcp>
</ip>
</network>