mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 23:10:08 +00:00
16cb11a66a
Having multiple addresses having same hostname is a common config either to have IPv4 and IPv6 address for the same hostname or even for DNS round robin. The validation in the network update code didn't allow adding such entries despite the fact that it is possible to define a network with them. Don't check hostname duplicity when adding a DNS entry. The update of the test case adds another entry for the 'pudding' hostname which is added in one of the networkxml2xmlupdate test cases. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
24 lines
632 B
XML
24 lines
632 B
XML
<network>
|
|
<name>default</name>
|
|
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a9c</uuid>
|
|
<forward dev='eth0' mode='nat'>
|
|
<interface dev='eth0'/>
|
|
</forward>
|
|
<bridge name='virbr0' stp='on' delay='0'/>
|
|
<dns forwardPlainNames='no'>
|
|
<host ip='192.168.122.122'>
|
|
<hostname>pudding</hostname>
|
|
</host>
|
|
<host ip='192.168.122.2'>
|
|
<hostname>shared</hostname>
|
|
<hostname>names</hostname>
|
|
</host>
|
|
<host ip='fd8f:1391:3a82:150::c0a8:9603'>
|
|
<hostname>shared</hostname>
|
|
<hostname>names</hostname>
|
|
</host>
|
|
</dns>
|
|
<ip address='192.168.122.1' netmask='255.255.255.0'>
|
|
</ip>
|
|
</network>
|