{
    "name"  : "检测对端可达性",
    "problems" : {
        "problem1" : {
            "desc"      : "【问题】对端不可达",
            "advice"    : "【建议】检查对端loopback 0或local-ip配置是否与本机wlan hot-backup配置的地址相符；检查有线拓扑和中间设备，对端是否三层可达。"
        }
    }
}
---------------------------code-------------------------------
#step1
ip = precondition('ip')
cmd = 'ping ' + ip
reg = /!/
response = cli(cmd)
print response
if !reg.test(response) :
	add_problem('problem1')
	return 'warn'
end

return 'success'