Change in vdsm[master]: networkTests: IPv6 added to testGetRouteDeviceTo
phoracek at redhat.com
phoracek at redhat.com
Mon Sep 8 10:45:24 UTC 2014
Petr Horáček has uploaded a new change for review.
Change subject: networkTests: IPv6 added to testGetRouteDeviceTo
......................................................................
networkTests: IPv6 added to testGetRouteDeviceTo
Change-Id: I07371231ff8c57e6fc0a9bf66befc8b3430fd107
Signed-off-by: Petr Horáček <phoracek at redhat.com>
---
M tests/functional/networkTests.py
1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/15/32615/1
diff --git a/tests/functional/networkTests.py b/tests/functional/networkTests.py
index 493fee3..ab91550 100644
--- a/tests/functional/networkTests.py
+++ b/tests/functional/networkTests.py
@@ -67,6 +67,7 @@
CUSTOM_PROPS = {'linux': 'rules', 'vdsm': 'as well'}
IPv6_ADDRESS = 'fdb3:84e5:4ff4:55e3::1/64'
+IPv6_ADDRESS_IN_NETWORK = 'fdb3:84e5:4ff4:55e3:0:ffff:ffff:0'
IPv6_GATEWAY = 'fdb3:84e5:4ff4:55e3::ff'
dummyPool = set()
@@ -1976,6 +1977,7 @@
def testGetRouteDeviceTo(self):
with dummyIf(1) as nics:
nic, = nics
+
dummy.setIP(nic, IP_ADDRESS, IP_CIDR)
try:
dummy.setLinkUp(nic)
@@ -1983,6 +1985,15 @@
finally:
addrFlush(nic)
+ ipv6_addr, ipv6_netmask = IPv6_ADDRESS.split('/')
+ dummy.setIP(nic, ipv6_addr, ipv6_netmask, family=6)
+ try:
+ dummy.setLinkUp(nic)
+ self.assertEqual(getRouteDeviceTo(IPv6_ADDRESS_IN_NETWORK),
+ nic)
+ finally:
+ addrFlush(nic)
+
@RequireDummyMod
@ValidateRunningAsRoot
def testBrokenBridgelessNetReplacement(self):
--
To view, visit http://gerrit.ovirt.org/32615
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I07371231ff8c57e6fc0a9bf66befc8b3430fd107
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Petr Horáček <phoracek at redhat.com>
More information about the vdsm-patches
mailing list