{
    "name"  : "正在检测设备ssid是否配置正确",
    "problems" : {
        "ssid_unconf" : {
            "desc"      : "【问题】未配置可能到导致认证异常",
            "advice"    : "【建议】通过商业营销认证快速配置向导功能重新配置" 
        },
		"different_ssid" : {
            "desc"      : "【问题】检查ssid与设备是否一致",
            "advice"    : "【建议】通过人工方式登录到服务器上，查看该设备配置的ssid与设备端是否一致" 
        }
    }
}

---------------------------code-------------------------------
response = cli('show app-auth ssid-cfg')
response = response.split(/\r?\n/)
if response.length == 2 :
    add_problem("ssid_unconf")
    return 'warn'
end

response = cli('show run | in app-auth ad-url')
response = response.split(/\r?\n/)
foreach item in response :
	reg = /http/
	if reg.test(item) :
		res = item.split(/\//)
	    portal = res[2]
		add_problem("different_ssid")
        return 'warn'
    end
end
return 'skip'



	
	
	
	
	
	
	
	