base-files: use "ports" array in board.json network for bridges
authorRafał Miłecki <rafal@milecki.pl>
Fri, 14 May 2021 09:09:57 +0000 (11:09 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 24 May 2021 08:36:28 +0000 (10:36 +0200)
commitd9603bbd3e313bf97ae2895e1f03dc9ca048225c
treed46b2aa556ae20938ba7fa622a356f50f7ab52bd
parentabc2fff80fe943eb5c9a71edd3e866dc44af2533
base-files: use "ports" array in board.json network for bridges

Bridge aggregates multiple ports so use a more accurate name ("ports")
and format (array) for storing them in board.json.

Example:

"network": {
"lan": {
"ports": [
"lan1",
"lan2",
"lan3",
"lan4"
],
"protocol": "static"
},
"wan": {
"ifname": "wan",
"protocol": "dhcp"
}
}

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit d42640e389a8b22a31fb0061c12cd9dfbddb87b8)
package/base-files/files/bin/config_generate
package/base-files/files/lib/functions/uci-defaults.sh