vim_config_encrypted = {"1.1": ("admin_password", "nsx_password", "vcenter_password"),
"default": ("admin_password", "nsx_password", "vcenter_password", "vrops_password")}
- def __init__(self, db, msg, fs, lcm_tasks, ro_config, loop):
+ def __init__(self, db, msg, fs, lcm_tasks, config, loop):
"""
Init, Connect to database, filesystem storage, and messaging
:param config: two level dictionary with configuration. Top level should contain 'database', 'storage',
self.logger = logging.getLogger('lcm.vim')
self.loop = loop
self.lcm_tasks = lcm_tasks
- self.ro_config = ro_config
+ self.ro_config = config["ro_config"]
super().__init__(db, msg, fs, self.logger)
# values that are encrypted at wim config because they are passwords
wim_config_encrypted = ()
- def __init__(self, db, msg, fs, lcm_tasks, ro_config, loop):
+ def __init__(self, db, msg, fs, lcm_tasks, config, loop):
"""
Init, Connect to database, filesystem storage, and messaging
:param config: two level dictionary with configuration. Top level should contain 'database', 'storage',
self.logger = logging.getLogger('lcm.vim')
self.loop = loop
self.lcm_tasks = lcm_tasks
- self.ro_config = ro_config
+ self.ro_config = config["ro_config"]
super().__init__(db, msg, fs, self.logger)
class SdnLcm(LcmBase):
- def __init__(self, db, msg, fs, lcm_tasks, ro_config, loop):
+ def __init__(self, db, msg, fs, lcm_tasks, config, loop):
"""
Init, Connect to database, filesystem storage, and messaging
:param config: two level dictionary with configuration. Top level should contain 'database', 'storage',
self.logger = logging.getLogger('lcm.sdn')
self.loop = loop
self.lcm_tasks = lcm_tasks
- self.ro_config = ro_config
+ self.ro_config = config["ro_config"]
super().__init__(db, msg, fs, self.logger)
class K8sClusterLcm(LcmBase):
- def __init__(self, db, msg, fs, lcm_tasks, vca_config, loop):
+ def __init__(self, db, msg, fs, lcm_tasks, config, loop):
"""
Init, Connect to database, filesystem storage, and messaging
:param config: two level dictionary with configuration. Top level should contain 'database', 'storage',
self.logger = logging.getLogger('lcm.k8scluster')
self.loop = loop
self.lcm_tasks = lcm_tasks
- self.vca_config = vca_config
+ self.vca_config = config["VCA"]
self.fs = fs
self.db = db
class K8sRepoLcm(LcmBase):
- def __init__(self, db, msg, fs, lcm_tasks, vca_config, loop):
+ def __init__(self, db, msg, fs, lcm_tasks, config, loop):
"""
Init, Connect to database, filesystem storage, and messaging
:param config: two level dictionary with configuration. Top level should contain 'database', 'storage',
self.logger = logging.getLogger('lcm.k8srepo')
self.loop = loop
self.lcm_tasks = lcm_tasks
- self.vca_config = vca_config
+ self.vca_config = config["VCA"]
self.fs = fs
self.db = db