networkxml2xmltest: Add example of multiple addresses having the same hostname

Having multiple addresses for the same hostname is a legitimate
configuration in DNS. Add test data to cover this case.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Peter Krempa 2021-07-14 09:20:18 +02:00
parent 133d05a15e
commit 21ad1dcd32
4 changed files with 34 additions and 1 deletions

View File

@ -8,6 +8,14 @@
<hostname>host</hostname>
<hostname>gateway</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>

View File

@ -10,6 +10,14 @@
<hostname>host</hostname>
<hostname>gateway</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>

View File

@ -13,6 +13,14 @@
<hostname>host</hostname>
<hostname>gateway</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>

View File

@ -5,7 +5,16 @@
<interface dev='eth0'/>
</forward>
<bridge name='virbr0' stp='on' delay='0'/>
<dns forwardPlainNames='no'/>
<dns forwardPlainNames='no'>
<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>