def get_subnets_for_net(self, net):
try:<EOL><INDENT>subnet_list = self.neutronclient.list_subnets(network_id=net)<EOL>subnet_dat = subnet_list.get('<STR_LIT>')<EOL>return subnet_dat<EOL><DEDENT>except Exception as exc:<EOL><INDENT>LOG.error("<STR_LIT>",<EOL>{'<STR_LIT>': net, '<STR_LIT>': str(exc)})<EOL>return None<EOL><DEDENT>
Returns the subnets in a network.