{
    "name"  : "流表容量是否达到上限",
    "problems" : {
        "fullFlow" : {
            "desc"      : "【问题】流表容量接近上限",
            "advice"    : "【建议】在WEB系统上配置连接数限制规则。内网服务器和设备接口IP建议单独配置连接数限制规则，不作限制-防流量攻击功能"
        }
    }
}
---------------------------code-------------------------------
#流表容量是否达到上限
response = cli('show ip fpm sta')
num1 = response.match(/The capacity of the flow table:(\d+)/gi)
num2 = response.match(/Active flows num:(\d+)/gi)
res = num1[0]
res = res.match(/\d+/)
resTmp = num2[0]
resTmp = resTmp.match(/\d+/)
print resTmp
print res
m = res - resTmp
print m
if m < 100:
	add_problem("fullFlow")
	return "warn"
end
return 'success'