def get_all_subnets_cidr(self, no_mask=False):
body = {}<EOL>subnet_cidrs = []<EOL>try:<EOL><INDENT>subnet_list = self.neutronclient.list_subnets(body=body)<EOL>subnet_dat = subnet_list.get('<STR_LIT>')<EOL>for sub in subnet_dat:<EOL><INDENT>if no_mask:<EOL><INDENT>subnet_cidrs.append(sub.get('<STR_LIT>').split('<STR_LIT:/>')[<NUM_LIT:0>])<EOL><DEDENT>else:<EOL><INDENT>subnet_cidrs.append(sub.get('<STR_LIT>'))<EOL><DEDENT><DEDENT><DEDENT>except Exception as exc:<EOL><INDENT>LOG.error("<STR_LIT>", str(exc))<EOL><DEDENT>return subnet_cidrs<EOL>
Returns all the subnets.