From 612981cb3bbae5585a8e96f2e198049a8b34df06 Mon Sep 17 00:00:00 2001 From: Oliver Kraitschy Date: Thu, 12 Jul 2018 16:34:49 +0200 Subject: [PATCH] Fix enum of use_syslog property --- netjsonconfig/backends/openwrt/schema.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/netjsonconfig/backends/openwrt/schema.py b/netjsonconfig/backends/openwrt/schema.py index baeeef7fa..dad60425e 100644 --- a/netjsonconfig/backends/openwrt/schema.py +++ b/netjsonconfig/backends/openwrt/schema.py @@ -634,13 +634,16 @@ "type": "integer", "title": "use_syslog", "description": "level of events logged to syslog", - "enum": [ - "disable", - "info, notice, warning, errors", - "notice, warning, errors", - "warning, errors", - "errors" - ], + "enum": [0, 1, 2, 3, 4], + "options": { + "enum_titles": [ + "0 - disable", + "1 - info, notice, warning, errors", + "2 - notice, warning, errors", + "3 - warning, errors", + "4 - errors" + ] + }, "default": 0, "propertyOrder": 15, },