From 1bdea915869fc619f829c6c0c1b5f6ffcac05032 Mon Sep 17 00:00:00 2001 From: Kevin Benton Date: Fri, 4 Oct 2013 00:19:12 -0700 Subject: [PATCH] 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) --- neutron/plugins/bigswitch/plugin.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/neutron/plugins/bigswitch/plugin.py b/neutron/plugins/bigswitch/plugin.py index 285ca131b69..a7cf72ec2cb 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).