mesh-olsrd: tell l3 with hack about intfs
This commit is contained in:
parent
d3dfe57505
commit
bee6197058
@ -20,14 +20,14 @@ echotol3roamd() {
|
|||||||
|
|
||||||
|
|
||||||
reload_service() {
|
reload_service() {
|
||||||
for i in $(ubus call network.interface dump | jsonfilter -e "@.interface[@.proto='gluon_mesh' && @.up=true].device")
|
for i in $(echo /nhdpinfo interface | nc localhost 2009 | cut -f1)
|
||||||
do
|
do
|
||||||
echotol3roamd "add_meshif $i"
|
echotol3roamd "add_meshif $i"
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in $(echotol3roamd "get_meshifs"| jsonfilter -e "@.mesh_interfaces[@]")
|
for i in $(echotol3roamd "get_meshifs"| jsonfilter -e "@.mesh_interfaces[@]")
|
||||||
do
|
do
|
||||||
if ! ubus call network.interface dump | jsonfilter -e "@.interface[@.proto='gluon_mesh' && @.up=true].device"|grep -q $i
|
if ! echo /nhdpinfo interface | nc localhost 2009 | cut -f1 |grep -q $i
|
||||||
then
|
then
|
||||||
echotol3roamd "del_meshif $i"
|
echotol3roamd "del_meshif $i"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user