def update_subnet_db_info(self, tenant_id, direc, net_id, subnet_id):
subnet_dict = self.retrieve_dcnm_subnet_info(tenant_id, direc)<EOL>if not subnet_dict:<EOL><INDENT>LOG.error("<STR_LIT>", tenant_id)<EOL>return<EOL><DEDENT>subnet = subnet_dict['<STR_LIT>'].split('<STR_LIT:/>')[<NUM_LIT:0>]<EOL>if direc == '<STR_LIT>':<EOL><INDENT>self.service_in_ip.update_subnet(subnet, net_id, subnet_id)<EOL><DEDENT>else:<EOL><INDENT>self.service_out_ip.update_subnet(subnet, net_id, subnet_id)<EOL><DEDENT>
Update the subnet DB with Net and Subnet ID, given the subnet.