]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Enable quantum-netns-cleanup to receive force as cli parameter
authorGary Kotton <gkotton@redhat.com>
Thu, 16 May 2013 11:44:06 +0000 (11:44 +0000)
committerGary Kotton <gkotton@redhat.com>
Tue, 21 May 2013 07:51:55 +0000 (07:51 +0000)
Fixes bug 1180767

Change-Id: Icd58fbe995129806426b70ea54d98f213988dbe5

quantum/agent/netns_cleanup_util.py

index 66c7491868b883413c5d8f86f6c566eb40041a32..81c81b1c07164a9ea075bfa0e892e7d3a8c2d6c3 100644 (file)
@@ -56,16 +56,20 @@ def setup_conf():
     from the main config that do not apply during clean-up.
     """
 
+    cli_opts = [
+        cfg.BoolOpt('force',
+                    default=False,
+                    help=_('Delete the namespace by removing all devices.')),
+    ]
+
     opts = [
         cfg.StrOpt('dhcp_driver',
                    default='quantum.agent.linux.dhcp.Dnsmasq',
                    help=_("The driver used to manage the DHCP server.")),
-        cfg.BoolOpt('force',
-                    default=False,
-                    help=_('Delete the namespace by removing all devices.')),
     ]
 
     conf = cfg.CONF
+    conf.register_cli_opts(cli_opts)
     conf.register_opts(opts)
     agent_config.register_root_helper(conf)
     conf.register_opts(dhcp.OPTS)