Notify about router and floating IP usages

This fixes the Quantum side of bug #1070009

Change-Id: I07c41814a3acfb2749d503fe1bc64ab7707535ee
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2012-10-24 15:11:24 +02:00
parent 70f5a25af8
commit 853a547331
1 changed files with 12 additions and 0 deletions

View File

@ -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})