From c2581fa9258f1ddeb87a48cf348d8f569b767d3d Mon Sep 17 00:00:00 2001 From: Tommaso Bailetti Date: Fri, 29 Sep 2023 11:36:20 +0200 Subject: [PATCH] fix: review changes --- packages/ns-api/files/ns.mwan | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/ns-api/files/ns.mwan b/packages/ns-api/files/ns.mwan index b4959352d..64d6826ee 100755 --- a/packages/ns-api/files/ns.mwan +++ b/packages/ns-api/files/ns.mwan @@ -53,6 +53,7 @@ if cmd == 'list': 'destination_address': 'String', 'destination_port': 'String', }, + 'test': {} })) elif cmd == 'call': action = sys.argv[2] @@ -109,6 +110,8 @@ elif cmd == 'call': data['destination_port'] if 'destination_port' in data else None, ) print(json.dumps({'message': 'success'})) + elif action == 'test': + print(json.dumps({'message': e_uci.get('ns-api', 'defaults_mwan')})) except KeyError as e: print(json.dumps(utils.validation_error(e.args[0], 'required'))) except json.JSONDecodeError: