def add(self):
<EOL>if request.method == '<STR_LIT:POST>':<EOL><INDENT>p = Pool()<EOL>p.name = request.params.get('<STR_LIT:name>')<EOL>p.description = request.params.get('<STR_LIT:description>')<EOL>p.default_type = request.params.get('<STR_LIT>')<EOL>if request.params['<STR_LIT>'].strip() != '<STR_LIT>':<EOL><INDENT>p.ipv4_default_prefix_length = request.params['<STR_LIT>']<EOL><DEDENT>if request.params['<STR_LIT>'].strip() != '<STR_LIT>':<EOL><INDENT>p.ipv6_default_prefix_length = request.params['<STR_LIT>']<EOL><DEDENT>p.save()<EOL>redirect(url(controller = '<STR_LIT>', action = '<STR_LIT:list>'))<EOL><DEDENT>return render("<STR_LIT>")<EOL>
Add a pool.