{
    "name"  : "用户登录后_无法访问隧道资源",
    "problems" : {
        "problem1" : {
            "desc"      : "【问题】红色预警：SSLVPN服务未开启或开启失败",
            "advice"    : "【建议】请开启SSLVPN服务或参照SSLVPN服务无法启动。"
        },
		"problem2" : {
            "desc"      : "【问题】请先登录SSLVPN"
        },
		"problem3" : {
            "advice"      : "【建议】为用户分配安全隧道资源"
        },
		"problem4" : {
            "advice"      : "【建议】如果登录终端是web client，提示请使用IE登录或桌面客户端登录；
			收集客户端日志文件确认是否完成安装；确认流表前业务是限制建流；与运营商确认是否UDP流量限制了。"
        },
		"problem5" : {
            "advice"      : "【建议】show efmp counter关注丢包情况。"
        }
    }
}
---------------------------code-------------------------------
userName = precondition('userName')
publicIp = precondition('publicIp')

res = cli("show sslvpn gateway")
if res.match("IP tunnel service: on") == null:
	add_problem("problem1")
    return "warn"
end

cmd = "show sslvpn resource-group by-user-name" + userName
res = cli(cmd)
resTmp = res.split(/\r\n?/)
if resTmp.length < 2:
	add_problem("problem2")
    return "warn"
end

res = cli("show sslvpn resource-group by-name")
if res.indexOf("Iptunnel Enable: TRUE") == -1:
	add_problem("problem3")
    return "warn"
end

cmd = "show sslvpn resource-group detail-by-user-name " + userName


cmd = "show sslvpn session username " + userName
res = cli(cmd)

if res.indexOf("Session status: running-syned") == -1 || res.indexOf("Iptunnel access: off"):
	
end
return "success"