summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Hall <brad@nicira.com>2012-01-20 17:39:34 -0800
committerBrad Hall <brad@nicira.com>2012-01-20 18:16:25 -0800
commit2a43fbd0e5017b281d9986312775b4ea6aa2f294 (patch)
treef1a7bab7cca127d3fce32deabd4f7da627c4cea9
parent16ea348a1623f055809d0d9b7fe9f046515b5dd1 (diff)
downloadnova-2a43fbd0e5017b281d9986312775b4ea6aa2f294.tar.gz
nova-2a43fbd0e5017b281d9986312775b4ea6aa2f294.tar.xz
nova-2a43fbd0e5017b281d9986312775b4ea6aa2f294.zip
Add floating IP support to Quantum Manager
Change-Id: Iaddaed338b30612bf664e19b5235f99640e53889 blueprint: nova-parity-floating
-rw-r--r--nova/network/quantum/manager.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/nova/network/quantum/manager.py b/nova/network/quantum/manager.py
index 4e3459011..933837b8b 100644
--- a/nova/network/quantum/manager.py
+++ b/nova/network/quantum/manager.py
@@ -52,7 +52,7 @@ flags.DEFINE_bool('quantum_use_port_security', False,
'Whether or not to enable port security')
-class QuantumManager(manager.FlatManager):
+class QuantumManager(manager.FloatingIP, manager.FlatManager):
"""NetworkManager class that communicates with a Quantum service
via a web services API to provision VM network connectivity.
@@ -90,6 +90,10 @@ class QuantumManager(manager.FlatManager):
# Initialize forwarding rules for anything specified in
# FLAGS.fixed_range()
self.driver.init_host()
+ # Initialize floating ip support (only works for nova ipam currently)
+ if FLAGS.quantum_ipam_lib == 'nova.network.quantum.nova_ipam_lib':
+ LOG.debug("Initializing FloatingIP support")
+ self.init_host_floating_ips()
# Set up all the forwarding rules for any network that has a
# gateway set.
networks = self.get_all_networks()