{
    "name"  : "IP地址冲突检查",
    "problems" : {
        "ipConflict" : {
            "desc"      : "【问题】NAT地址池或接口IP可能存在IP冲突。${0}",
            "advice"    : "【建议】建议show log查看具体的ARP冲突日志，确定日志所提示IP是否冲突，如果地址池IP存在冲突可能导致内网部分用户无法上网，如是接口IP存在冲突可能导致网络时断时续。"
        }
    }
}
---------------------------code-------------------------------
res = cli("show logging")
resArr = res.split(/\r?\n/)
i = 0 
while i < resArr.length :
    resSignal = resArr[i]
    if resSignal.indexOf("Duplicate address") != -1 :
        add_problem("ipConflict",[resSignal])
        return "warn"
    end
    i = i + 1
end

cli("run-system-shell")
res = cli("cat /data/syslog/syslog_1.text")
resArr = res.split(/\r?\n/)
i = 0 
while i < resArr.length :
    resSignal = resArr[i]
    if resSignal.indexOf("Duplicate address") != -1 :
        add_problem("ipConflict",[resSignal])
        cli("exit")
        return "warn"
    end
    i = i + 1
end

res = cli("cat /data/syslog/syslog_2.text")
resArr = res.split(/\r?\n/)
i = 0 
while i < resArr.length :
    resSignal = resArr[i]
    if resSignal.indexOf("Duplicate address") != -1 :
        add_problem("ipConflict",[resSignal])
        cli("exit")
        return "warn"
    end
    i = i + 1
end
cli("exit")
return "success"