diff options
| author | Salvatore Orlando <salvatore.orlando@eu.citrix.com> | 2011-02-23 10:27:30 +0000 |
|---|---|---|
| committer | Salvatore Orlando <salvatore.orlando@eu.citrix.com> | 2011-02-23 10:27:30 +0000 |
| commit | a9075d4edc126b95910258face7f00073449073d (patch) | |
| tree | 84fc85444ba2802e2b7e0c2ac00a0dce658af220 | |
| parent | afcec00e9e05031e1e7c086ff75fb05cf97c412d (diff) | |
| download | nova-a9075d4edc126b95910258face7f00073449073d.tar.gz nova-a9075d4edc126b95910258face7f00073449073d.tar.xz nova-a9075d4edc126b95910258face7f00073449073d.zip | |
FlatManager.init_host now inhibits call to method in superclass.
Floating IP methods have been redefined in FlatManager to raise NotImplementedError
| -rw-r--r-- | nova/network/manager.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nova/network/manager.py b/nova/network/manager.py index c6eba225e..a7f263daa 100644 --- a/nova/network/manager.py +++ b/nova/network/manager.py @@ -322,6 +322,17 @@ class FlatManager(NetworkManager): """ timeout_fixed_ips = False + def init_host(self): + """Do any initialization that needs to be run if this is a + standalone service. + """ + #Fix for bug 723298 - do not call init_host on superclass + #Following code has been copied for NetworkManager.init_host + ctxt = context.get_admin_context() + for network in self.db.host_get_networks(ctxt, self.host): + self._on_set_network_host(ctxt, network['id']) + + def allocate_fixed_ip(self, context, instance_id, *args, **kwargs): """Gets a fixed ip from the pool.""" # TODO(vish): when this is called by compute, we can associate compute @@ -406,6 +417,22 @@ class FlatManager(NetworkManager): net['dns'] = FLAGS.flat_network_dns self.db.network_update(context, network_id, net) + def allocate_floating_ip(self, context, project_id): + #Fix for bug 723298 + raise NotImplementedError() + + def associate_floating_ip(self, context, floating_address, fixed_address): + #Fix for bug 723298 + raise NotImplementedError() + + def disassociate_floating_ip(self, context, floating_address): + #Fix for bug 723298 + raise NotImplementedError() + + def deallocate_floating_ip(self, context, floating_address): + #Fix for bug 723298 + raise NotImplementedError() + class FlatDHCPManager(FlatManager): """Flat networking with dhcp. |
