Support in cord-tester for aaa-proxy using sadis app.
And various other changes that moves support for aaa to ONOS 1.10.3 and upwards.
Change-Id: Id911812caf2e1c1bd78107e57175d190241812ff
diff --git a/src/test/utils/CordTestConfig.py b/src/test/utils/CordTestConfig.py
index b3e24bd..0910a31 100644
--- a/src/test/utils/CordTestConfig.py
+++ b/src/test/utils/CordTestConfig.py
@@ -23,6 +23,7 @@
from CordTestUtils import log_test as log
from CordTestUtils import running_on_pod
from VolthaCtrl import voltha_setup, voltha_teardown, VolthaService, VolthaCtrl
+from OnosCtrl import OnosCtrl
from SSHTestAgent import SSHTestAgent
log.setLevel('INFO')
@@ -104,6 +105,9 @@
)
voltha_enabled = bool(int(os.getenv('VOLTHA_ENABLED', 0)))
voltha_configure = True
+
+ olt_switch_map = {}
+
if hasattr(class_test, 'VOLTHA_AUTO_CONFIGURE'):
voltha_configure = getattr(class_test, 'VOLTHA_AUTO_CONFIGURE')
@@ -128,11 +132,16 @@
setattr(class_test, 'voltha_ctrl', ret[0])
setattr(class_test, 'voltha_device', ret[1])
setattr(class_test, 'voltha_switch_map', ret[2])
+ olt_switch_map = ret[2]
voltha_driver_configured = ret[3]
setattr(class_test, 'voltha_preconfigured', voltha_driver_configured)
if voltha_driver_configured:
setattr(class_test, 'VOLTHA_TEARDOWN', False)
+ #load the sadis and aaa config
+ OnosCtrl.sadis_load_config(olt_switch_map = olt_switch_map)
+ OnosCtrl.aaa_load_config()
+
def teardown_module(module):
class_test = get_test_class(module)
if class_test is None: