]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix exception when port status is updated with linux bridge plugin
authorGary Kotton <gkotton@redhat.com>
Thu, 25 Oct 2012 03:30:24 +0000 (03:30 +0000)
committerGary Kotton <gkotton@redhat.com>
Thu, 25 Oct 2012 03:30:24 +0000 (03:30 +0000)
Fixes bug 1072713

Change-Id: I3466e747764fc379d413d9493cf80ea35552179f

quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py

index d6ecdad3afd787baaf39df76861e547cd722e8be..774d4cf41a07bc3b93aa38111ae6eaf5db1844a3 100755 (executable)
@@ -427,8 +427,10 @@ class LinuxBridgeRpcCallbacks():
         port = kwargs.get('port')
         if port['admin_state_up']:
             vlan_id = kwargs.get('vlan_id')
+            physical_network = kwargs.get('physical_network')
             # create the networking for the port
             self.linux_br.add_interface(port['network_id'],
+                                        physical_network,
                                         vlan_id,
                                         port['id'])
         else: