From: Julien Danjou Date: Wed, 24 Oct 2012 13:11:24 +0000 (+0200) Subject: Notify about router and floating IP usages X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=853a547331f874533a1096699814bed2f627bb5f;p=openstack-build%2Fneutron-build.git Notify about router and floating IP usages This fixes the Quantum side of bug #1070009 Change-Id: I07c41814a3acfb2749d503fe1bc64ab7707535ee Signed-off-by: Julien Danjou --- diff --git a/bin/quantum-usage-audit b/bin/quantum-usage-audit index fc686e12e..91c9ac4ff 100755 --- a/bin/quantum-usage-audit +++ b/bin/quantum-usage-audit @@ -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})