diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-05-18 11:34:44 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-05-22 21:40:19 +0200 |
commit | c0a9a7339364c2baa6fb4a3d594b786591e05fb8 (patch) | |
tree | 3a982753041c20c703670e9a9babe2a8a8bc20f8 /package/network/ipv6/6rd/files | |
parent | 5f2408dbc5f9e9d24c166efb4a34d9e6f13bf789 (diff) | |
download | upstream-c0a9a7339364c2baa6fb4a3d594b786591e05fb8.tar.gz upstream-c0a9a7339364c2baa6fb4a3d594b786591e05fb8.tar.bz2 upstream-c0a9a7339364c2baa6fb4a3d594b786591e05fb8.zip |
6rd: add 6rd specific settings as nested json object
Add 6rd specific settings prefix, relay-prefix as a nested data json object
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'package/network/ipv6/6rd/files')
-rw-r--r-- | package/network/ipv6/6rd/files/6rd.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/package/network/ipv6/6rd/files/6rd.sh b/package/network/ipv6/6rd/files/6rd.sh index 62d35b6994..8b34414280 100644 --- a/package/network/ipv6/6rd/files/6rd.sh +++ b/package/network/ipv6/6rd/files/6rd.sh @@ -64,9 +64,13 @@ proto_6rd_setup() { json_add_int ttl "${ttl:-64}" [ -n "$tos" ] && json_add_string tos "$tos" json_add_string local "$ipaddr" - json_add_string 6rd-prefix "$ip6prefix/$ip6prefixlen" - json_add_string 6rd-relay-prefix "$ip4prefix/$ip4prefixlen" [ -n "$tunlink" ] && json_add_string link "$tunlink" + + json_add_object 'data' + json_add_string prefix "$ip6prefix/$ip6prefixlen" + json_add_string relay-prefix "$ip4prefix/$ip4prefixlen" + json_close_object + proto_close_tunnel proto_add_data |