]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: network: Refactor XML parsing in virNetworkDHCPDefParseXML
authorPeter Krempa <pkrempa@redhat.com>
Wed, 15 Feb 2023 16:10:18 +0000 (17:10 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Jun 2023 11:23:06 +0000 (13:23 +0200)
commitd50eb74b9dedf50b9d45e3dded90140640db4958
tree13740b3361070624555cca41fa6bf0fa8e196860
parent7abf1d864b90022ec920491b0000599b77ec8ee8
conf: network: Refactor XML parsing in virNetworkDHCPDefParseXML

Use virXMLNodeGetSubelement(List) instead of the looped parser and
simplify the code.

Note that handling of the 'bootp' element now conforms to the schema
where we allow just one and the 'file' attribute is mandatory.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/network_conf.c