Skip to content
Snippets Groups Projects
Commit f6b35c7c authored by Jakob Olsson's avatar Jakob Olsson
Browse files

dynhd: api: issue topology discovery when adding iface back to bridge

parent 698b8a1c
No related branches found
No related tags found
No related merge requests found
Pipeline #43682 passed
......@@ -5,6 +5,25 @@
MAPFILE="/tmp/multiap.backhaul"
issue_discovery() {
local iface="$1"
ubus list ieee1905 > /dev/null 2>&1
[ "$?" != 0 ] && return
res=$(ubus -t2 call ieee1905 buildcmdu "{\"type\":0, \"ifname\":\"${iface}\"}")
json_load "$res" > /dev/null 2>&1
json_get_var data data
[ "$data" == "" ] && return
ubus -t1 wait_for ieee1905.al.$iface > /dev/null 2>&1
[ "$?" != 0 ] && return
ubus call ieee1905.al.$iface cmdu "{\"dst\":\"01:80:c2:00:00:13\", \"type\":0, \"data\":\"${data}\"}"
}
remove_from_bridge() {
config_get ifname "$section" ifname
......@@ -77,6 +96,7 @@ bridge_addif() {
local ifname=$1
bridge_modif add $ifname
issue_discovery $ifname
}
bridge_delif() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment