Skip to content
Snippets Groups Projects
Commit 1e5fbdc5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "rstp: Fix the empty bridge name issue"

parents 09141b9f 70dbabc9
Branches qsdk/NHSS.QSDK.12.1.5.r1
No related tags found
No related merge requests found
......@@ -183,15 +183,14 @@ board_recover() {
__brctl_stp_on_or_off() {
local config="$1"
local on_or_off="$2"
local type br_device br_ifname
local type br
config_get type "$config" type
[ -z "$type" -o ! "$type" = "bridge" ] && return
br_device="$config"
network_get_device br_ifname $br_device
network_get_physdev br $1
brctl stp $br_ifname $on_or_off
brctl stp $br $on_or_off
sleep 1
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment