diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2010-08-24 05:58:58 +0000 |
|---|---|---|
| committer | Tarmac <> | 2010-08-24 05:58:58 +0000 |
| commit | 4f6cc65e630f71435be9032d10e08a92c5937e81 (patch) | |
| tree | db1976521487ce044c74b99c3e2008cc02d427dd | |
| parent | b2e3c6bce6f1de3630886534c764817a7060905b (diff) | |
| parent | a39a155342ad5aa9d8c7b115fb6fe7498ef00f23 (diff) | |
Fixes an error in setup_compute_network that was causing network setup to fail.
| -rw-r--r-- | nova/network/service.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nova/network/service.py b/nova/network/service.py index d3aa1c46f..3dba0a9ef 100644 --- a/nova/network/service.py +++ b/nova/network/service.py @@ -26,7 +26,7 @@ from nova import flags from nova import service from nova import utils from nova.auth import manager -from nova.network import exception +from nova.network import exception as network_exception from nova.network import model from nova.network import vpn @@ -64,8 +64,7 @@ def type_to_class(network_type): def setup_compute_network(network_type, user_id, project_id, security_group): """Sets up the network on a compute host""" srv = type_to_class(network_type) - srv.setup_compute_network(network_type, - user_id, + srv.setup_compute_network(user_id, project_id, security_group) @@ -170,7 +169,7 @@ class FlatNetworkService(BaseNetworkService): redis.sadd('ips', fixed_ip) fixed_ip = redis.spop('ips') if not fixed_ip: - raise exception.NoMoreAddresses() + raise network_exception.NoMoreAddresses() # TODO(vish): some sort of dns handling for hostname should # probably be done here. return {'inject_network': True, |
