def setup_conf(): conf = cfg.CONF ml2_group, ml2_opts = neutron_options.list_ml2_conf_opts()[0] cfg.CONF.register_cli_opts(ml2_opts, ml2_group) ovn_group, ovn_opts = ovn_config.list_opts()[0] cfg.CONF.register_cli_opts(ovn_opts, group=ovn_group) db_group, neutron_db_opts = db_options.list_opts()[0] cfg.CONF.register_cli_opts(neutron_db_opts, db_group) return conf
def setup_conf(): conf = cfg.CONF ml2_group, ml2_opts = neutron_options.list_ml2_conf_opts()[0] cfg.CONF.register_cli_opts(ml2_opts, ml2_group) cfg.CONF.register_cli_opts(securitygroups_rpc.security_group_opts, 'SECURITYGROUP') ovn_group, ovn_opts = ovn_config.list_opts()[0] cfg.CONF.register_cli_opts(ovn_opts, group=ovn_group) db_group, neutron_db_opts = db_options.list_opts()[0] cfg.CONF.register_cli_opts(neutron_db_opts, db_group) return conf
def setup_conf(): conf = cfg.CONF ml2_group, ml2_opts = neutron_options.list_ml2_conf_opts()[0] cfg.CONF.register_cli_opts(ml2_opts, ml2_group) cfg.CONF.register_cli_opts(securitygroups_rpc.security_group_opts, 'SECURITYGROUP') ovn_group, ovn_opts = ovn_config.list_opts()[0] cfg.CONF.register_cli_opts(ovn_opts, group=ovn_group) db_group, neutron_db_opts = db_options.list_opts()[0] cfg.CONF.register_cli_opts(neutron_db_opts, db_group) return conf
def setup_conf(): conf = cfg.CONF cfg.CONF.core_plugin = ( 'networking_ovn.cmd.neutron_ovn_db_sync_util.OVNPlugin') ovn_group, ovn_opts = ovn_config.list_opts()[0] # 'ovn_l3_mode' option is not used for sync, hence deleting it for index, opt in enumerate(ovn_opts): if opt.name == 'ovn_l3_mode': del ovn_opts[index] cfg.CONF.register_cli_opts(ovn_opts, group=ovn_group) db_group, neutron_db_opts = db_options.list_opts()[0] cfg.CONF.register_cli_opts(neutron_db_opts, db_group) return conf
def setup_conf(): conf = cfg.CONF cfg.CONF.core_plugin = ( 'networking_ovn.cmd.neutron_ovn_db_sync_util.OVNPlugin') ovn_group, ovn_opts = ovn_config.list_opts()[0] # 'ovn_l3_mode' option is not used for sync, hence deleting it for index, opt in enumerate(ovn_opts): if opt.name == 'ovn_l3_mode': del ovn_opts[index] cfg.CONF.register_cli_opts(ovn_opts, group=ovn_group) db_group, neutron_db_opts = db_options.list_opts()[0] cfg.CONF.register_cli_opts(neutron_db_opts, db_group) return conf