def METHOD_NAME(request):
    try:
        lists = {}
        auth = AuthSession(request.session)
        client = auth.get_clientFactory()
        lists["form_vrf"] = VrfForm()  # TODO Alterar depois de edit pra ""
        if request.method == 'POST':
            # Set data in form
            vrf_form = VrfForm(request.POST)
            # Return data to form in case of error
            lists["form_vrf"] = vrf_form
            # Validate
            if vrf_form.is_valid():
                vrf = vrf_form.cleaned_data["vrf"]
                internal_name = vrf_form.cleaned_data["internal_name"]
                list_vrf = [{
                    "vrf": vrf,
                    "internal_name": internal_name
                }]
                client.create_api_vrf().create(list_vrf)
                messages.add_message(
                    request, messages.SUCCESS, vrf_messages.get("success_insert"))
                return redirect('vrf.list')
    except NetworkAPIClientError, e:
        logger.error(e)
        messages.add_message(request, messages.ERROR, e)
    return render_to_response(VRF_CREATE, lists, context_instance=RequestContext(request))