libvirt/tests/networkxml2confdata/netboot-tftp.xml
Michal Privoznik 12be42ee7e network: Generate TFTP config regardless of DHCP
We already allow users to provide TFTP root path in network XML
and not specify any DHCP. This makes sense, because dnsmasq is
not only DHCP server but also TFTP server and users might have
a DHCP server configured on their own, outside of libvirt's
control and want just the TFTP part.

By moving TFTP config generator out of DHCP generator and calling
it for every IPv4 range, users can finally enable just TFTP.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2026765
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2022-06-01 09:40:40 +02:00

10 lines
268 B
XML

<network>
<name>tftp-only</name>
<uuid>eb486e5c-4df5-42ee-ae4a-ad8557998d00</uuid>
<forward mode='nat'/>
<bridge name='virbr0' stp='off' delay='1'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<tftp root='/var/lib/tftproot'/>
</ip>
</network>