Re: [libvirt-test-API][PATCH] Add IPv6 section into network case

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

 



Please sent patch V2 rather than generate the patch from your local repo.
Also add the v2->v1 changes to the description of patch.

Summary likes following
[libvirt-test-API][PATCH v2] Add network_dhcp_leases test case

On 01/26/2015 11:50 AM, jiahu wrote:
Add IPv6 family related scenarios to virtual network case
---
  cases/basic_network.conf       | 8 ++++++++
  repos/network/define.py        | 7 ++++++-
  repos/network/xmls/network.xml | 5 +++++
  3 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/cases/basic_network.conf b/cases/basic_network.conf
index e9abd57..5d1438e 100644
--- a/cases/basic_network.conf
+++ b/cases/basic_network.conf
@@ -13,6 +13,14 @@ network:define
          $defaultnetend
      netmode
          nat
+    netip6addr
+        $netip6addr
+    netip6prefix
+        $netip6prefix
+    netip6start
+        $netip6start
+    netip6end
+        $netip6end
network:network_list
      flags
diff --git a/repos/network/define.py b/repos/network/define.py
index dd054f7..6e50eb7 100644
--- a/repos/network/define.py
+++ b/repos/network/define.py
@@ -17,7 +17,12 @@ required_params = ('networkname',
                     'bridgenetmask',
                     'netstart',
                     'netend',
-                   'netmode',)
+                   'netmode',
+                   'netip6addr',
+                   'netip6prefix',
+                   'netip6start',
+                   'netip6end',
+                   )
  optional_params = {'xml' : 'xmls/network.xml',
                    }
diff --git a/repos/network/xmls/network.xml b/repos/network/xmls/network.xml
index 220169b..97e3517 100644
--- a/repos/network/xmls/network.xml
+++ b/repos/network/xmls/network.xml
@@ -7,4 +7,9 @@
        <range start="NETSTART" end="NETEND"/>
      </dhcp>
    </ip>
+  <ip family="ipv6" address="NETIP6ADDR" prefix="NETIP6PREFIX" >
+    <dhcp>
+      <range start="NETIP6START" end="NETIP6END" />
+    </dhcp>
+  </ip>
  </network>

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[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]