code: def edit(self, id):
          
  
          c.action = 'edit'
          c.edit_vrf = VRF.get(int(id))
  
          # Did we have any action passed to us?
          if 'action' in request.params:
  
              if request.params['action'] == 'edit':
                  if request.params['rt'].strip() == '':
                      c.edit_vrf.rt = None
                  else:
                      c.edit_vrf.rt = request.params['rt'].strip()
  
                  if request.params['name'].strip() == '':
                      c.edit_vrf.name = None
                  else:
                      c.edit_vrf.name = request.params['name'].strip()
                  c.edit_vrf.description = request.params['description']
                  c.edit_vrf.save()
  
          return render('/vrf_edit.html')
docs: Edit a VRF