{
    "name"  : "检测SSID及相应的用户数",
    "problems" : {
        "ssidError" : {
            "desc"      : "【问题】检测到SSID ${0}下STA个数为0，可能有异常",
            "advice"    : "【建议】建议手动关联确认是否异常"
        }
    }
}

---------------------------code-------------------------------
response = cli('show wlan-config summary')
if response.search('Invalid input | Unknown command.') != -1 :
    return 'skip'    
end
ssidArr = formatSsidInfo(response)
i = 0
length = ssidArr.length
isSsidError = false
abnormalSsid = ''
while i < length :
    data = ssidArr[i]
    ssid = data.ssid
    staNum = data.staNum
    if staNum == 0 :
        isSsidError = true
        if abnormalSsid == '' :
            abnormalSsid = abnormalSsid + ssid
        else :
            abnormalSsid = abnormalSsid + '、' + ssid
        end
    end
    i = i + 1
end

if isSsidError == true :
    add_problem('ssidError', [abnormalSsid])
    return 'warn'
end
return 'success'