def setup_conf():

    cli_opts = [
        cfg.BoolOpt('allsets',
                    default=False,
                    help=_('Destroy all IPsets.')),
        cfg.BoolOpt('force',
                    default=False,
                    help=_('Destroy IPsets even if there is an iptables '
                           'reference.')),
        cfg.StrOpt('prefix',
                   default=ipset_manager.NET_PREFIX,
                   help=_('String prefix used to match IPset names.')),
    ]

    conf = cfg.CONF
    conf.register_cli_opts(cli_opts)
    return conf
Setup the cfg for the clean up utility.
dataset/ETHPy150Open openstack/neutron/neutron/cmd/ipset_cleanup.py/setup_conf