]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Notify about router and floating IP usages
authorJulien Danjou <julien@danjou.info>
Wed, 24 Oct 2012 13:11:24 +0000 (15:11 +0200)
committerJulien Danjou <julien@danjou.info>
Thu, 25 Oct 2012 10:00:00 +0000 (12:00 +0200)
This fixes the Quantum side of bug #1070009

Change-Id: I07c41814a3acfb2749d503fe1bc64ab7707535ee
Signed-off-by: Julien Danjou <julien@danjou.info>
bin/quantum-usage-audit

index fc686e12ec81a98735f9e5176ac35f1949a1003f..91c9ac4ffede9e5ee1de0c39eacc130ff610fbfb 100755 (executable)
@@ -53,3 +53,15 @@ if __name__ == '__main__':
                             'port.exists',
                             notifier_api.INFO,
                             {'port': port})
+    for router in plugin.get_routers(context):
+        notifier_api.notify(context,
+                            notifier_api.publisher_id('network'),
+                            'router.exists',
+                            notifier_api.INFO,
+                            {'router': router})
+    for floatingip in plugin.get_floatingips(context):
+        notifier_api.notify(context,
+                            notifier_api.publisher_id('network'),
+                            'floatingip.exists',
+                            notifier_api.INFO,
+                            {'floatingip': floatingip})