Ask Your Question

Revision history [back]

Use the script from http://alesnosek.com/blog/2015/05/25/openstack-nova-notifications-subscriber/ and adjust the parameters:

EXCHANGE_NAME="neutron"
ROUTING_KEY="notifications.info"
QUEUE_NAME="neutron_dump_queue"

You will receive start/end events for creating, attaching, detaching, and deleting a floating IP address. With the data inside those events you should be able to do the same for floating IP addresses like for the internal IP addresses.

Use the script from http://alesnosek.com/blog/2015/05/25/openstack-nova-notifications-subscriber/ and adjust the parameters:

EXCHANGE_NAME="neutron"
ROUTING_KEY="notifications.info"
QUEUE_NAME="neutron_dump_queue"

You will receive start/end events for creating, attaching, detaching, and deleting a floating IP address. With the data inside those events you should be able to do the same for floating IP addresses like for the internal IP addresses.

To receive the events ensure you have set the following parameters in the neutron.conf configuration file.

notification_driver = messaging
notify_nova_on_port_data_changes = True
notify_nova_on_port_status_changes = True
notification_topics = notifications