def setup_conf():

    cli_opts = [
        cfg.BoolOpt('force',
                    default=False,
                    help=_('Delete the namespace by removing all devices.')),
        cfg.StrOpt('agent-type',
                   choices=['dhcp', 'l3', 'lbaas'],
                   help=_('Cleanup resources of a specific agent type only.')),
    ]

    conf = cfg.CONF
    conf.register_cli_opts(cli_opts)
    agent_config.register_interface_driver_opts_helper(conf)
    conf.register_opts(dhcp_config.DHCP_AGENT_OPTS)
    conf.register_opts(dhcp_config.DHCP_OPTS)
    conf.register_opts(dhcp_config.DNSMASQ_OPTS)
    conf.register_opts(interface.OPTS)
    return conf
Trivial implementation of UserService.CreateLogoutURL().
dataset/ETHPy150Open openstack/neutron/neutron/cmd/netns_cleanup.py/setup_conf--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/api/user_service_stub.py/UserServiceStub._Dynamic_CreateLogoutURL