@classmethod<EOL><INDENT>def from_dict(cls, parm, pool = None):<DEDENT>
if pool is None:<EOL><INDENT>pool = Pool()<EOL><DEDENT>pool.id = parm['<STR_LIT:id>']<EOL>pool.name = parm['<STR_LIT:name>']<EOL>pool.description = parm['<STR_LIT:description>']<EOL>pool.default_type = parm['<STR_LIT>']<EOL>pool.ipv4_default_prefix_length = parm['<STR_LIT>']<EOL>pool.ipv6_default_prefix_length = parm['<STR_LIT>']<EOL>for val in ('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>if parm[val] is not None:<EOL><INDENT>setattr(pool, val, int(parm[val]))<EOL><DEDENT><DEDENT>pool.tags = {}<EOL>for tag_name in parm['<STR_LIT>']:<EOL><INDENT>tag = Tag.from_dict({'<STR_LIT:name>': tag_name })<EOL>pool.tags[tag_name] = tag<EOL><DEDENT>pool.avps = parm['<STR_LIT>']<EOL>if parm['<STR_LIT>'] is not None:<EOL><INDENT>pool.vrf = VRF.get(parm['<STR_LIT>'])<EOL><DEDENT>return pool<EOL>
Create new Pool-object from dict.

            Suitable for creating objects from XML-RPC data.
            All available keys must exist.