
{
    "name"  : "Ipv6认证模式配置命令是否正确",
    "problems" : {
        "JJ_ipv6" : {
            "desc"      : "【问题】当前IPV6认证模式默认为严格模式，即无论IPV4是否认证通过IPV6报文都无法转发。",
            "advice"    : "【建议】修改IPV6认证模式为兼容模式，当IPV4认证通过后IPV6报文就可以转发。配置命令${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('address-bind ipv6-mode compatible') == -1:
	config = 'address-bind ipv6-mode compatible' 
	restore_cmd.push('config')
	restore_cmd.push('address-bind ipv6-mode compatible')
	restore_cmd.push('end')
	change_title('Ipv6认证模式功能配置错误')
	add_problem('JJ_ipv6',[config],restore_cmd)
    return 'warn'
end
return 'success'

