{
    "name"  : "PPPOE拨号是否正常获取到地址",
    "problems" : {
        "address" : {
            "desc"      : "【问题】PPPOE拨号未正常获取到IP地址",
            "advice"    : "【建议】请检查PPPOE相关配置是否正确或使用《PPPoE拨号不成功》来诊断具体原因"
        }
    }
}

---------------------------code-------------------------------
reg = /dialer\s[^\s]+\s+no\saddress|dialer\s([^\s]+\s+){2}no\saddress\s+down|dialer\s([^\s]+\s+){3}down/i
res = cli('show ip in brief')
if reg.test(res) == true:
    add_problem('address')
    return 'warn'
end
return 'success'
