diff --git a/brian_dashboard_manager/config.py b/brian_dashboard_manager/config.py index e97ce1194e058cd6fc6c5fac1641f0e207e4e2a2..a7aa27464a22fd4d7f0c5cadd823c6b9d47adf46 100644 --- a/brian_dashboard_manager/config.py +++ b/brian_dashboard_manager/config.py @@ -1,6 +1,40 @@ import json import jsonschema +DEFAULT_ORGANIZATIONS = [ + { + "name": "Main Org.", + "excluded_nrens": [], + "excluded_dashboards": [] + }, + { + "name": "GÉANT Staff", + "excluded_nrens": [], + "excluded_dashboards": [] + }, + { + "name": "NRENs", + "excluded_nrens": [], + "excluded_dashboards": [] + }, + { + "name": "General Public", + "excluded_nrens": [ + "JISC", + "PSNC" + ], + "excluded_dashboards": [] + }, + { + "name": "CAE1 - Europe", + "excluded_nrens": [ + "JISC", + "PSNC" + ], + "excluded_dashboards": [] + } +] + CONFIG_SCHEMA = { "$schema": "http://json-schema.org/draft-07/schema#", @@ -52,7 +86,6 @@ CONFIG_SCHEMA = { "hostname": {"type": "string"}, "listen_port": {"type": "integer"}, "inventory_provider": {"type": "string"}, - "organizations": {"type": "array", "items": {"$ref": "#definitions/organization"}}, "datasources": { "type": "object", "properties": { @@ -66,10 +99,8 @@ CONFIG_SCHEMA = { "admin_password", "hostname", "inventory_provider", - "organizations", "datasources" - ], - "additionalProperties": False + ] } @@ -79,7 +110,6 @@ def defaults(): "admin_password": "admin", "hostname": "localhost:3000", "listen_port": 3001, - "organizations": ["Main Org."], "datasources": {} }