From: Kevin Benton Date: Fri, 4 Oct 2013 07:19:12 +0000 (-0700) Subject: BigSwitch: sync state on disassociate floating ip X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=1bdea915869fc619f829c6c0c1b5f6ffcac05032;p=openstack-build%2Fneutron-build.git BigSwitch: sync state on disassociate floating ip Sends the state of port's parent network to the backend controller when a floating IP is disassociated from a port. Closes-Bug: #1235074 Change-Id: I8375e6564b5d08f1adc7e7aef6affc97c8d03c5e (cherry picked from commit 0bae949eed229613c77c4943edbf68c1c140f977) --- diff --git a/neutron/plugins/bigswitch/plugin.py b/neutron/plugins/bigswitch/plugin.py index 285ca131b..a7cf72ec2 100644 --- a/neutron/plugins/bigswitch/plugin.py +++ b/neutron/plugins/bigswitch/plugin.py @@ -1071,6 +1071,16 @@ class NeutronRestProxyV2(db_base_plugin_v2.NeutronDbPluginV2, # update network on network controller self._send_update_network(orig_net, context) + def disassociate_floatingips(self, context, port_id): + LOG.debug(_("NeutronRestProxyV2: diassociate_floatingips() called")) + super(NeutronRestProxyV2, self).disassociate_floatingips(context, + port_id) + port = super(NeutronRestProxyV2, self).get_port(context, port_id) + net_id = port['network_id'] + orig_net = super(NeutronRestProxyV2, self).get_network(context, + net_id) + self._send_update_network(orig_net, context) + def _send_all_data(self): """Pushes all data to network ctrl (networks/ports, ports/attachments).