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>
--
1.8.1.4