[PATCH 1/2] networkxml2xmltest: Add example of multiple addresses having the same hostname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 tests/networkxml2xmlin/nat-network-dns-hosts.xml      |  8 ++++++++
 tests/networkxml2xmlout/nat-network-dns-hosts.xml     |  8 ++++++++
 .../nat-network-dns-more-hosts.xml                    |  8 ++++++++
 .../networkxml2xmlupdateout/nat-network-no-hosts.xml  | 11 ++++++++++-
 4 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/tests/networkxml2xmlin/nat-network-dns-hosts.xml b/tests/networkxml2xmlin/nat-network-dns-hosts.xml
index da65267ec5..58608f6959 100644
--- a/tests/networkxml2xmlin/nat-network-dns-hosts.xml
+++ b/tests/networkxml2xmlin/nat-network-dns-hosts.xml
@@ -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>
diff --git a/tests/networkxml2xmlout/nat-network-dns-hosts.xml b/tests/networkxml2xmlout/nat-network-dns-hosts.xml
index 17e269710b..7c561aad2a 100644
--- a/tests/networkxml2xmlout/nat-network-dns-hosts.xml
+++ b/tests/networkxml2xmlout/nat-network-dns-hosts.xml
@@ -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>
diff --git a/tests/networkxml2xmlupdateout/nat-network-dns-more-hosts.xml b/tests/networkxml2xmlupdateout/nat-network-dns-more-hosts.xml
index 5464d90ab9..dfc12eb2f9 100644
--- a/tests/networkxml2xmlupdateout/nat-network-dns-more-hosts.xml
+++ b/tests/networkxml2xmlupdateout/nat-network-dns-more-hosts.xml
@@ -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>
diff --git a/tests/networkxml2xmlupdateout/nat-network-no-hosts.xml b/tests/networkxml2xmlupdateout/nat-network-no-hosts.xml
index ee2d773729..7cff9edc09 100644
--- a/tests/networkxml2xmlupdateout/nat-network-no-hosts.xml
+++ b/tests/networkxml2xmlupdateout/nat-network-no-hosts.xml
@@ -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>
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux