{
    "name"  : "路由检查",
    "problems" : {
        "noConf" : {
            "desc"      : "【问题】不是通过配置ipsec的外网接口达到对端",
            "advice"    : "【建议】请检查路由配置"
        }
    }
}

---------------------------code-------------------------------
#reg = /[\d\.]+\/\d[^\r\n]+via\s[\d\.]+[^\r\n]+GigabitEthernet\s/i
reg = /Gateway\sof\slast\sresort\sis\s[\d\.]+\sto\snetwork\s[\d\.]+/i
response = cli('show ip route')
if reg.test(response) == false:
    add_problem('noConf')
    return 'warn'
end
return 'success'


