示例#1
0
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()
示例#2
0
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()
示例#3
0
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()
示例#4
0
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()
示例#5
0
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()
示例#6
0
    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()
示例#7
0
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()