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

cmd = 'show run | in app-auth direct-srcip ' + intraNetIp
res = cli(cmd)
resArr = res.split(/\r?\n/) 
if resArr.length == 2 :
	add_problem("dnsDelegate")
    return "warn"
end

return "success"
