Skip to content

Commit

Permalink
Regression caused by commit b56c2c9
Browse files Browse the repository at this point in the history
Fixes bug 1109001

Change-Id: I5f0304cca380813e552cd229635a9aacee42126a
  • Loading branch information
Gary Kotton committed Jan 29, 2013
1 parent b56c2c9 commit a84ba7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,9 @@ def __init__(self, context, agent):
def network_delete(self, context, **kwargs):
LOG.debug("network_delete received")
network_id = kwargs.get('network_id')
bridge_name = self.agent.get_bridge_name(network_id)
bridge_name = self.agent.br_mgr.get_bridge_name(network_id)
LOG.debug("Delete %s", bridge_name)
self.agent.delete_vlan_bridge(bridge_name)
self.agent.br_mgr.delete_vlan_bridge(bridge_name)

def port_update(self, context, **kwargs):
LOG.debug(_("port_update received"))
Expand Down Expand Up @@ -664,8 +664,7 @@ def setup_rpc(self, physical_interfaces):
self.context = context.RequestContext('quantum', 'quantum',
is_admin=False)
# Handle updates from service
self.callbacks = LinuxBridgeRpcCallbacks(self.context,
self.br_mgr)
self.callbacks = LinuxBridgeRpcCallbacks(self.context, self)
self.dispatcher = self.callbacks.create_rpc_dispatcher()
# Define the listening consumers for the agent
consumers = [[topics.PORT, topics.UPDATE],
Expand Down
2 changes: 1 addition & 1 deletion quantum/plugins/linuxbridge/lb_quantum_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def update_device_up(self, rpc_context, **kwargs):
device = kwargs.get('device')
LOG.debug(_("Device %(device)s up %(agent_id)s"),
locals())
port = self.get_port_from_device(device)
port = db.get_port_from_device(device[self.TAP_PREFIX_LEN:])
if port:
if port['status'] != q_const.PORT_STATUS_ACTIVE:
# Set port status to ACTIVE
Expand Down

0 comments on commit a84ba7e

Please sign in to comment.