{
    "name"  : "服务器数据流是否被WEB认证阻断",
    "problems" : {
        "dnsDelegate" : {
            "desc"      : "【问题】服务器数据流被WEB认证阻断",
            "advice"    : "【建议】请将服务器内网IP地址配置为免认证用户。"
        }
    }
}
---------------------------code-------------------------------
intraNetIp = precondition('intraNetIp')
res = cli("show run | in web-auth enable")
resArr = res.split(/\r?\n/) 
if resArr.length == 2 :
    return "success"
end

res = cli("show run | in web-auth direct-host")
intraNetIp = intraNetIp.match(/(\d+\.)+/)
regx = 'web-auth direct-host ' + intraNetIp[0] + '0'
if res.match(regx) == null :
	add_problem("dnsDelegate")
    return "warn"
end

return "success"