Activate the ONOS cord-tester apps for the right controller
Change-Id: I62488ddae6aacc103480fe0830a0e1d716f10d6c
diff --git a/src/test/utils/CordContainer.py b/src/test/utils/CordContainer.py
index 4d62519..bda9359 100644
--- a/src/test/utils/CordContainer.py
+++ b/src/test/utils/CordContainer.py
@@ -389,11 +389,10 @@
print('Waiting %d seconds for ONOS instance to start' %self.boot_delay)
time.sleep(self.boot_delay)
- @classmethod
- def activate_apps(cls):
- for app in cls.tester_apps:
+ def activate_apps(self):
+ for app in self.tester_apps:
print('Activating ONOS app %s' %(app))
- OnosCtrl(app).activate()
+ OnosCtrl(app, controller = self.onos_ip).activate()
time.sleep(2)
def build_image(self):