コード例 #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
ファイル: setup.py プロジェクト: haripk/contrail-provisioning
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()