def is_subnet_present(self, subnet_addr):
try:<EOL><INDENT>subnet_list = self.neutronclient.list_subnets(body={})<EOL>subnet_dat = subnet_list.get('<STR_LIT>')<EOL>for sub in subnet_dat:<EOL><INDENT>if sub.get('<STR_LIT>') == subnet_addr:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL><DEDENT>except Exception as exc:<EOL><INDENT>LOG.error("<STR_LIT>",<EOL>{'<STR_LIT>': subnet_addr, '<STR_LIT>': str(exc)})<EOL>return False<EOL><DEDENT>
Returns if a subnet is present.