diff options
author | Phil Sutter <phil@nwl.cc> | 2018-09-11 22:14:25 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-09-13 10:42:11 +0200 |
commit | 758f8bd61bcad7809d776881bc1f8de0b2fab2e2 (patch) | |
tree | 39f6778cda7f776c3c67bdc4ad7ccb70141cccc4 /tests/py/ip/sets.t.payload.netdev | |
parent | 5fb4942292c30be7225c4bbbc04fb3eecbf514fd (diff) |
json: Make inet_service_type_json() respect literal level
This brings inet_service_type_json() on par with
inet_service_type_print(). Despite datatype_print()'s ability to use the
'print' callback, a dedicated 'json' callback is required to make port
numbers appear as numbers in JSON output instead of strings. Therefore
go with a bit of code duplication here.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/ip/sets.t.payload.netdev')
0 files changed, 0 insertions, 0 deletions