{
    "name"  : "核心产品在IPV6场景一对多镜像版本缺陷",
    "problems" : {
        "flowError" : {
            "desc"      : "【风险】当前版本有开启IPV6功能的情况下，配置一对多镜像及时所有三层转发TX出方向报文被丢弃",
            "advice"    : "【建议】若不用ipv6功能可删除相关配置，若有使用ipv6功能建议升级最新软件版本，推荐工具一键升级功能。"
        }
    }
}
---------------------------code-------------------------------
dailPort= precondition('dailPort')
res = cli("show version")
print res
dateTmp = res.match(/\d+-\d+-\d+/)
print dateTmp
time = dateTmp[0]
time = time.trim()
time = time.split("-")
year = time[0]
mouth = time[1]
day = time[2]
if year > 2015 || year < 2015 && mouth > 10 || year < 2015 && mouth < 10 && day > 8:
	return 'skip'
end
 
cmd = "show monitor session " + dailPort
res = cli(cmd)
if res.indexOf("remote vlan") != -1:
	return 'skip'
end

res = cli("Show run | include ipv6")
if res.indexOf("ipv6 enable") != -1:
	add_problem("flowError")
	return 'warn'
end

return 'success'