
{
    "name"  : "免认证VLAN用户接入的VLAN及端口未规划AM规则导致无法上网",
    "problems" : {
        "step_1" : {
            "desc"      : "【问题】免认证VLAN规划异常",
            "advice"    : "【建议】检查免认证VLAN配置及AM规则免认证vlan不应该做AM规划Show direct-vlan 查看免认证vlan。show address-manage 查看"
        }
    }
}

---------------------------code-------------------------------
response = cli("show direct-vlan")
response = cli("show address-manage")
if response.indexOf("match ip loose") == -1 && response.indexOf("vlan") == -1:
	add_problem("step_1")
	return 'warn'
end

return 'success'

