map-agent: map-topology-discovery: fix the redirection of buildcmdu

Not redirecting caused stdout issues over the serial console.
This commit is contained in:
Balalakshmi Arunachalam Rajendran 2025-02-28 09:52:29 +00:00 committed by IOPSYS Dev
parent 7b4be698fc
commit 948f727a0b
No known key found for this signature in database

View file

@ -15,7 +15,7 @@ rc="$?"
issue_discovery() {
local iface="$1"
res=$(ubus -t5 call ieee1905 buildcmdu "{\"type\":0, \"ifname\":\"${iface}\"}")
res=$(ubus -t5 call ieee1905 buildcmdu "{\"type\":0, \"ifname\":\"${iface}\"}") > /dev/null 2>&1
json_load "$res" > /dev/null 2>&1
json_get_var data data