]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add control_exchange option to common/config.py
authorMark McClain <mark.mcclain@dreamhost.com>
Fri, 5 Oct 2012 19:51:19 +0000 (15:51 -0400)
committerMark McClain <mark.mcclain@dreamhost.com>
Fri, 5 Oct 2012 19:51:19 +0000 (15:51 -0400)
fixes bug 1062517

Follows the instructions in the openstack/common/rpc/__init__.py and
defines a control_exchange option.

Change-Id: I92c50e1aea44954b2c9d62db1df536b9044b6951

quantum/common/config.py

index 1ca191aa99d8c46399f868a7206c7d6011a7535d..3032c33225a4045b1ed9d41f400b74bd13aa4796 100644 (file)
@@ -50,7 +50,11 @@ core_opts = [
     cfg.IntOpt('max_subnet_host_routes', default=20),
     cfg.StrOpt('state_path', default='.'),
     cfg.IntOpt('dhcp_lease_duration', default=120),
-    cfg.BoolOpt('allow_overlapping_ips', default=False)
+    cfg.BoolOpt('allow_overlapping_ips', default=False),
+    cfg.StrOpt('control_exchange',
+               default='quantum',
+               help='AMQP exchange to connect to if using RabbitMQ or Qpid')
+
 ]
 
 # Register the configuration options