Fix: import get_controller which is a function in OnosCtrl instead of a class method
Change-Id: I730c5940d22abe5b86cc25724ca83e5e672202e9
diff --git a/src/test/utils/OnosFlowCtrl.py b/src/test/utils/OnosFlowCtrl.py
index 5b2da52..aa5437e 100644
--- a/src/test/utils/OnosFlowCtrl.py
+++ b/src/test/utils/OnosFlowCtrl.py
@@ -18,12 +18,12 @@
import os,sys,time
from nose.tools import *
from scapy.all import *
-from OnosCtrl import OnosCtrl
+from OnosCtrl import OnosCtrl, get_controller
class OnosFlowCtrl:
auth = ('karaf', 'karaf')
- controller = OnosCtrl.get_controller()
+ controller = get_controller()
cfg_url = 'http://%s:8181/onos/v1/flows/' %(controller)
def __init__( self,