{
    "name"  : "默认选路方式只基于源ip",
    "precondition" : [],
    "problems" : {
        "ip" : {
            "desc"      : "【问题】当前默认的选路方式未只基于源ip进行散列，可能会存在下载中断或者登陆异常",
            "advice"    : [
                "【建议】可运行如下配置进行修复", 
                "配置示例：",
                "\tRuijie#config",
                "\tRuijie(config)#ip ref load-sharing original-only",
                "\tRuijie(config)#end",
                "\tRuijie#write"              
            ]
        }
    }
}

---------------------------code-------------------------------

isProblemFound = false
mllbCfg = get_share_value('mllbCfg')
isMultiOutIntf = get_share_value('isMultiOutIntf')


res = cli("show run | include ip ref load-sharing original-only")
reg = /^\s+ip ref load-sharing original-only/im
matchStr = reg.exec(res)

if matchStr == null && isMultiOutIntf && !mllbCfg.stateEnable:
    isProblemFound = true
    add_problem("ip")
end

if isProblemFound == true :
    return 'warn'
else:
    return 'success'
end
