5 local type ports ifname
7 config_get type "$config" type
8 [ "$type" != "bridge" ] && return
10 config_get ports "$config" ports
11 [ -n "$ports" ] && return
13 config_get ifname "$config" ifname
14 [ -z "$ifname" ] && return
16 for port in $ifname; do uci add_list network.$config.ports="$port"; done
17 uci delete network.$config.ifname
21 config_foreach migrate_ports device