From 7725a580c0c3938b826c77d39da0b6a0ced119ab Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sun, 1 Nov 2020 15:02:13 +0100 Subject: Make all implemented schedulers available through API --- api/opendc/api/v2/schedulers/endpoint.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'api/opendc') 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(_): -- cgit v1.2.3