summaryrefslogtreecommitdiffstats
path: root/nova/scheduler/driver.py
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-10-04 11:38:56 +0100
committerRussell Bryant <rbryant@redhat.com>2012-10-09 18:13:15 -0400
commit1b176be90fbf71a4e5ccbe0b6526a0b443d29263 (patch)
tree8d200990a3bf3733e8806d17da9eb0e6c6675d06 /nova/scheduler/driver.py
parent7b618f2bf5e39c22dd60d3c3977f9b7137890493 (diff)
downloadnova-1b176be90fbf71a4e5ccbe0b6526a0b443d29263.tar.gz
nova-1b176be90fbf71a4e5ccbe0b6526a0b443d29263.tar.xz
nova-1b176be90fbf71a4e5ccbe0b6526a0b443d29263.zip
Remove cast_to_network from scheduler.
This patch removes some dead code from the scheduler. rpc casting to network hosts has been unused in the scheduler since commit d328ddcadb24d1b1961bd05a7676bc8f54b6776f. Change-Id: I0ba49d0e9f7e9476f84b5d389c06b7fc43cf0438
Diffstat (limited to 'nova/scheduler/driver.py')
-rw-r--r--nova/scheduler/driver.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/nova/scheduler/driver.py b/nova/scheduler/driver.py
index 0ca1d7b89..2c2f95e2d 100644
--- a/nova/scheduler/driver.py
+++ b/nova/scheduler/driver.py
@@ -124,22 +124,12 @@ def cast_to_compute_host(context, host, method, **kwargs):
LOG.debug(_("Casted '%(method)s' to compute '%(host)s'") % locals())
-def cast_to_network_host(context, host, method, **kwargs):
- """Cast request to a network host queue"""
-
- rpc.cast(context,
- rpc.queue_get_for(context, 'network', host),
- {"method": method, "args": kwargs})
- LOG.debug(_("Casted '%(method)s' to network '%(host)s'") % locals())
-
-
def cast_to_host(context, topic, host, method, **kwargs):
"""Generic cast to host"""
topic_mapping = {
"compute": cast_to_compute_host,
- "volume": cast_to_volume_host,
- 'network': cast_to_network_host}
+ "volume": cast_to_volume_host}
func = topic_mapping.get(topic)
if func: