
{
    "name"  : "认证迁移配置命令是否正确",
    "problems" : {
        "JJ_move" : {
            "desc"      : "【问题】用户在位置迁移后，无法进行认证接入，需要等待原认证表项老化后才能在新位置重新认证。",
            "advice"    : "【建议】增加认证迁移相关配置。配置命令${0}"
        }
    }
}

---------------------------code-------------------------------
result='pass'
response = get_share_value('log_versionDetail')
if response.indexOf('N18000') == -1 :
	return 'skip'
end
log_run = get_share_value('log_showrun')
if log_run.indexOf('auth-mode gateway') == -1:
	return 'skip'
end
config = ''
restore_cmd = []
reback_cmd = []
if log_run.indexOf('station-move permit') == -1:
	config = 'station-move permit' 
	restore_cmd.push('config')
	restore_cmd.push('station-move permit')
	restore_cmd.push('end')
	change_title('认证迁移功能配置错误')
	add_problem('JJ_move',[config],restore_cmd)
    return 'warn'
end
return 'success'

