{
    "name"  : "密码复杂度检查",
    "problems" : {
        "password" : {
            "desc"      : "【问题】本环境设备密码配置太简单",
            "advice"    : "【建议】建议更改为更加复杂的密码。"
        }
    }
}
---------------------------code-------------------------------
res = cli("show run | in password")
if res.indexOf("password ruijie") != -1 || res.indexOf("password admin") != -1 || res.indexOf("password 123456") != -1 || res.indexOf("password ruijie123") != -1 || res.indexOf("password admin123") != -1 || res.indexOf("password 12345678") != -1 :
    add_problem("password")
    return 'warn'
end
return 'success'
 

