From ae7501bd0aeef87b708eb033907aab470ea764b7 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 13 Aug 2019 15:48:04 -0500 Subject: [service https] T1443: move https and api default data to vyos.defaults --- src/conf_mode/http-api.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/conf_mode/http-api.py') diff --git a/src/conf_mode/http-api.py b/src/conf_mode/http-api.py index c1d596ea3..1f91ac582 100755 --- a/src/conf_mode/http-api.py +++ b/src/conf_mode/http-api.py @@ -27,14 +27,6 @@ from vyos import ConfigError config_file = '/etc/vyos/http-api.conf' -default_config_data = { - 'listen_address' : '127.0.0.1', - 'port' : '8080', - 'strict' : 'false', - 'debug' : 'false', - 'api_keys' : [ {"id": "testapp", "key": "qwerty"} ] -} - vyos_conf_scripts_dir=vyos.defaults.directories['conf_mode'] # XXX: this model will need to be extended for tag nodes @@ -43,7 +35,8 @@ dependencies = [ ] def get_config(): - http_api = default_config_data + http_api = vyos.defaults.api_data + conf = Config() if not conf.exists('service https api'): return None -- cgit v1.2.3