Implement changes to cord-tester framework for vrouter configuration.
And add vrouter tests to verify routes.
diff --git a/src/test/cli/clidriver.py b/src/test/cli/clidriver.py
index ce10a2c..ccb27a0 100644
--- a/src/test/cli/clidriver.py
+++ b/src/test/cli/clidriver.py
@@ -52,7 +52,7 @@
if self.port:
ssh_hosts_file = os.path.join(os.getenv('HOME'), '.ssh', 'known_hosts')
cmd_host_remove = 'ssh-keygen -f "%s" -R [%s]:8101' %(ssh_hosts_file, self.ip_address)
- #os.system(cmd_host_remove)
+ os.system(cmd_host_remove)
#main.log.info('SSH host remove cmd: %s' %cmd_host_remove)
main.log.info('Spawning pexpect for ip %s' %self.ip_address)
self.handle = pexpect.spawn(
diff --git a/src/test/cli/onosclidriver.py b/src/test/cli/onosclidriver.py
index 15753a6..b2e0526 100644
--- a/src/test/cli/onosclidriver.py
+++ b/src/test/cli/onosclidriver.py
@@ -41,6 +41,7 @@
def connect_cli(self):
options = { 'name' : 'onoscli', 'onosIp': '{0}'.format(self.controller) }
+ main.log.info('Connecting to controller at %s' %self.controller)
self.connect(name = options['name'], user_name = 'onos', pwd = 'rocks',
ip_address = self.controller, port = '8101', options = options)
@@ -4575,7 +4576,7 @@
main.exit()
if __name__ == '__main__':
- onos_cli = OnosCliDriver()
+ onos_cli = OnosCliDriver(connect = False)
name = 'onos_cli'
user = 'onos'
passwd = 'rocks'