def update_ifmap_users(args_str=None): config_args = ConfigSetup(args_str)._args if config_args.orchestrator == 'openstack': config = ConfigOpenstackSetup(config_args) else: config = ConfigBaseSetup(config_args) config.fixup_ifmap_config_files()
def main(args_str=None): config_args = ConfigSetup(args_str)._args if config_args.orchestrator == 'openstack': config = ConfigOpenstackSetup(config_args) # For future Orchestrator, inherit ConfigBaseSetup and # add functionality specific to Orchestrator. else: # Defaults to provision only contrail config without Orchestrator. config = ConfigBaseSetup(config_args) config.setup()
def main(args_str = None): config_args = ConfigSetup(args_str)._args if config_args.orch == 'openstack': config = ConfigOpenstackSetup(config_args) # For future Orchestrator, inherit ConfigBaseSetup and # add functionality specific to Orchestrator. else: # Defaults to provision only contrail config without Orchestrator. config = ConfigBaseSetup(config_args) config.setup()
def fix_cfgm_config_files(args_str=None): config_args = ConfigSetup(args_str)._args if config_args.orchestrator == 'openstack': config = ConfigOpenstackSetup(config_args) else: config = ConfigBaseSetup(config_args) config.fixup_config_files() config.restart_config()
def __init__(self, args_str = None): ContrailUpgrade.__init__(self) ConfigSetup.__init__(self) if self._args.orchestrator == 'openstack': self.config_setup = ConfigOpenstackSetup(self._args) else: self.config_setup = ConfigBaseSetup(self._args) self.update_upgrade_data()