[uci & netifd] discrepancy in net dev br name convention
Username: n8v8R
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2048
With line 44 in package/network/config/netifd/files/lib/network/config.sh
[ "bridge" = "$type" ] && ifname="br-$config"
the
br-
prefix is added to net dev bridges and subsequently reported as dev
br-name
by tools querying net dev via iproute2.
However uci is omitting the
br-
prefix from queries with
uci show network
and thus producing a different interpretation of the net dev name. Which leads to undesired effects in scripts that would deploy queries of both kinds, uci and iproute2.
With a coherent net dev name convention such effects would be mitigated, notwithstanding potential issues cascading into the network management in general.