def edit(self, id):
c.action = '<STR_LIT>'<EOL>c.edit_vrf = VRF.get(int(id))<EOL>if '<STR_LIT:action>' in request.params:<EOL><INDENT>if request.params['<STR_LIT:action>'] == '<STR_LIT>':<EOL><INDENT>if request.params['<STR_LIT>'].strip() == '<STR_LIT>':<EOL><INDENT>c.edit_vrf.rt = None<EOL><DEDENT>else:<EOL><INDENT>c.edit_vrf.rt = request.params['<STR_LIT>'].strip()<EOL><DEDENT>if request.params['<STR_LIT:name>'].strip() == '<STR_LIT>':<EOL><INDENT>c.edit_vrf.name = None<EOL><DEDENT>else:<EOL><INDENT>c.edit_vrf.name = request.params['<STR_LIT:name>'].strip()<EOL><DEDENT>c.edit_vrf.description = request.params['<STR_LIT:description>']<EOL>c.edit_vrf.save()<EOL><DEDENT><DEDENT>return render('<STR_LIT>')<EOL>
Edit a VRF