summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-11-01 15:02:13 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-11-01 15:02:13 +0100
commit7725a580c0c3938b826c77d39da0b6a0ced119ab (patch)
treeb06a0c641e97ec77ed041d95cf51fa74047ced67 /api
parent7493be615fd1ef0a629b32318416d3f0d2b868fb (diff)
Make all implemented schedulers available through API
Diffstat (limited to 'api')
-rw-r--r--api/opendc/api/v2/schedulers/endpoint.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/api/opendc/api/v2/schedulers/endpoint.py b/api/opendc/api/v2/schedulers/endpoint.py
index 127b5f1a..9c19f631 100644
--- a/api/opendc/api/v2/schedulers/endpoint.py
+++ b/api/opendc/api/v2/schedulers/endpoint.py
@@ -1,6 +1,16 @@
from opendc.util.rest import Response
-SCHEDULERS = ['core-mem']
+SCHEDULERS = [
+ 'mem',
+ 'mem-inv',
+ 'core-mem',
+ 'core-mem-inv',
+ 'active-servers',
+ 'active-server-inv',
+ 'provisioned-cores',
+ 'provisioned-cores-inv',
+ 'random'
+]
def GET(_):