ubus: fix invalid ipv6-prefix json
authorMislav Novakovic <mislav.novakovic@sartura.hr>
Mon, 21 May 2018 16:07:38 +0000 (18:07 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 21 May 2018 20:08:14 +0000 (22:08 +0200)
commit373495ad610cfffaeac833283d1431e6328a109a
treeb4183d1278aeae133949a96f41a5476c3a977d68
parent79d5e6f500af6854ab67d4c146cc09eee63493e4
ubus: fix invalid ipv6-prefix json

"ipv6-prefix": [
{
"<some ipv6 address>",
"preferred-lifetime": 37979,
"valid-lifetime": 48779,
"prefix-length": 63
}
],

json object is missing key, set address as key name.

Line up DHCPv4 lease json info by using key name "address"

Signed-off-by: Mislav Novakovic <mislav.novakovic@sartura.hr>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/ubus.c