{
    "name"  : "用户流量是否存在跨运营商访问",
    "problems" : {
        "difOperator" : {
            "desc"      : "【问题】用户流量存在跨运营商访问，把跨运营商的流显示的出来",
            "advice"    : "【建议】请检查DNS及应用路由配置"
        }
    }
}
---------------------------code-------------------------------
userNoNetIp = precondition('userNoNetIp')
cmd = "show ip f f | in " + userNoNetIp
response = cli(cmd)
results = response.split(/\r?\n/)
i = 1
while i < (results.length - 1):
    resultTmp = results[i]
    resultTmp = resultTmp.trim()
    arr = resultTmp.split(/\s+/)
    #1,判断Nat转换后的公网源IP是否存在
    natSourchIP = arr[2]    
    if natSourchIP.indexOf("(") != -1 && natSourchIP.indexOf(".") != -1:
        natDestinationIP = arr[4]
        if natDestinationIP.indexOf("(") != -1 && natDestinationIP.indexOf(".") != -1:
            #判断源 目的IP是否属于不同运营商    
            operatorSourchArr = natSourchIP.match(/\((.+?)\)/) 
            natSourchIP = operatorSourchArr[1]
            operatorDestinationArr = natDestinationIP.match(/\((.+?)\)/)
            natDestinationIP = operatorDestinationArr[1]
            operatorSourch = getOperator(natSourchIP)
            operatorDestination = getOperator(natDestinationIP)
            if operatorDestination != operatorSourch :
                add_problem(difOperator)
                return "warn"
            end
        end       
    end
    i = i + 1
end

return "success"
