WIP Case200 : IPV6 testcase implementation
Do not merge.
Add the test case for the IPV6 1HOP testing.
Add the test case for the SDNIP testting (facing issue in
intent intsallation).
Modified teh mininet driver to retrieve the IPv6 address.
Signed-off-by: subhash kumar singh <subhash_singh@criterionnetworks.com>
Signed-off-by: sathishm <sathishm@criterionnetworks.com>
Change-Id: I2e0a504a92cb8ee15609b544331d448657223abc
diff --git a/TestON/drivers/common/cli/emulator/mininetclidriver.py b/TestON/drivers/common/cli/emulator/mininetclidriver.py
index 0cfd804..41670f7 100644
--- a/TestON/drivers/common/cli/emulator/mininetclidriver.py
+++ b/TestON/drivers/common/cli/emulator/mininetclidriver.py
@@ -915,7 +915,7 @@
else:
main.log.error( "Connection failed to the host" )
- def getIPAddress( self, host ):
+ def getIPAddress( self, host , proto='IPV4'):
"""
Verifies the host's ip configured or not."""
if self.handle:
@@ -931,7 +931,11 @@
main.cleanup()
main.exit()
- pattern = "inet\saddr:(\d+\.\d+\.\d+\.\d+)"
+ pattern = ''
+ if proto == 'IPV4':
+ pattern = "inet\saddr:(\d+\.\d+\.\d+\.\d+)"
+ else:
+ pattern = "inet6\saddr:\s([\w,:]*)/"
ipAddressSearch = re.search( pattern, response )
main.log.info(
self.name +