{
    "name"  : "是否存在EG2000K硬件芯片问题",
    "problems" : {
        "flowError" : {
            "desc"      : "【问题】EG2000K硬件版本1.00存在芯片问题。",
            "advice"    : "【建议】如果需要使用到本地记录日志功能联系400处理。"
        }
    }
}
---------------------------code-------------------------------
if get_share_value("IsOrNotEG2000K")!="yes" :
    return 'skip'
end

res = cli("show version")
print res
resArr = res.match(/System hardware version :\s\d+.\d+/g)
print resArr
resAr = resArr[0]
version =resAr.split(/\s+/)
print version
version = version[4]
print version
if version == 1.0 :
	resArr1 = res.match(/System software version :\D+\d+/)
	device = resArr1[0]
	device = device.match(/\d+/)
	device = device[0]
	print device
	if device == 11 :
		print 'warn'
		add_problem("flowError")
		return 'warn'
	end
	if device == 10 :
		resArr1 = res.match(/Release\D\d+/i)
		release = resArr1[0]
		release = release.match(/\d+/)
		release = release[0]
		if release < 189981 :
			print 'warn'
			add_problem("flowError")
			return 'warn'
		end	
	end	
end	
print 'success'
return 'success'