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>
Tue, 18 May 2021 10:30:16 +0000 (12:30 +0200)
commitd42640e389a8b22a31fb0061c12cd9dfbddb87b8
treef0fb4c32ef19e1c90a6d1f596fca22c31a94eb97
parent097dc943f1f9b02835c6b249b2a035679da5619f
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>
package/base-files/files/bin/config_generate
package/base-files/files/lib/functions/uci-defaults.sh