def _parse_subnet(self, subnet_dict):
if not subnet_dict:<EOL><INDENT>return<EOL><DEDENT>alloc_pool = subnet_dict.get('<STR_LIT>')<EOL>cidr = subnet_dict.get('<STR_LIT>')<EOL>subnet = cidr.split('<STR_LIT:/>')[<NUM_LIT:0>]<EOL>start = alloc_pool[<NUM_LIT:0>].get('<STR_LIT:start>')<EOL>end = alloc_pool[<NUM_LIT:0>].get('<STR_LIT:end>')<EOL>gateway = subnet_dict.get('<STR_LIT>')<EOL>sec_gateway = subnet_dict.get('<STR_LIT>')<EOL>return {'<STR_LIT>': subnet, '<STR_LIT:start>': start, '<STR_LIT:end>': end,<EOL>'<STR_LIT>': gateway, '<STR_LIT>': sec_gateway}<EOL>
Return the subnet, start, end, gateway of a subnet.