]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Do not specify host for l2population topics
authorIlya Shakhat <ishakhat@mirantis.com>
Mon, 14 Sep 2015 12:43:05 +0000 (15:43 +0300)
committerIlya Shakhat <ishakhat@mirantis.com>
Mon, 14 Sep 2015 12:43:34 +0000 (15:43 +0300)
When creating topics oslo.messaging automatically creates
topic with hostname suffix (e.g. topic.hostname), there's
no need to do this explicitly.

Change-Id: Ia396452e8deb2c8f10bbead936245eeece8066a6
Closes-Bug: #1495508

neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py

index 175a81c83f2e9ef9e320cd5b09ede1c5136f95f5..0a42ccb23bff1529e6e9f4150adc11f3e6fe1ab3 100644 (file)
@@ -921,8 +921,7 @@ class LinuxBridgeNeutronAgentRPC(service.Service):
                      [topics.NETWORK, topics.DELETE],
                      [topics.SECURITY_GROUP, topics.UPDATE]]
         if cfg.CONF.VXLAN.l2_population:
-            consumers.append([topics.L2POPULATION,
-                              topics.UPDATE, cfg.CONF.host])
+            consumers.append([topics.L2POPULATION, topics.UPDATE])
         self.connection = agent_rpc.create_consumers(self.endpoints,
                                                      self.topic,
                                                      consumers)
index 56e67c1f4479a0ec6c8fdfeb594ff9e3c80122cc..76f0b1dbf11da7bd93b671f159bd92ecbfe5e5d8 100644 (file)
@@ -377,8 +377,7 @@ class OVSNeutronAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin,
                      [topics.DVR, topics.UPDATE],
                      [topics.NETWORK, topics.UPDATE]]
         if self.l2_pop:
-            consumers.append([topics.L2POPULATION,
-                              topics.UPDATE, self.conf.host])
+            consumers.append([topics.L2POPULATION, topics.UPDATE])
         self.connection = agent_rpc.create_consumers(self.endpoints,
                                                      self.topic,
                                                      consumers,