summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/manager.py3
-rw-r--r--nova/network/manager.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/nova/manager.py b/nova/manager.py
index b7b97bced..65300354b 100644
--- a/nova/manager.py
+++ b/nova/manager.py
@@ -40,7 +40,8 @@ class Manager(object):
def init_host(self):
"""Do any initialization that needs to be run if this is a standalone service.
-
+
Child classes should override this method.
"""
+ pass
diff --git a/nova/network/manager.py b/nova/network/manager.py
index dcca21127..abe4dcebc 100644
--- a/nova/network/manager.py
+++ b/nova/network/manager.py
@@ -218,12 +218,12 @@ class FlatManager(NetworkManager):
class VlanManager(NetworkManager):
"""Vlan network with dhcp"""
-
+
def init_host(self):
"""Do any initialization that needs to be run if this is a
standalone service.
"""
- driver.init_host()
+ self.driver.init_host()
def allocate_fixed_ip(self, context, instance_id, *args, **kwargs):
"""Gets a fixed ip from the pool"""