def _create_service_nwk(self, tenant_id, tenant_name, direc):
net_dict = self.retrieve_dcnm_net_info(tenant_id, direc)<EOL>net = utils.Dict2Obj(net_dict)<EOL>subnet_dict = self.retrieve_dcnm_subnet_info(tenant_id, direc)<EOL>subnet = utils.Dict2Obj(subnet_dict)<EOL>try:<EOL><INDENT>self.dcnm_obj.create_service_network(tenant_name, net, subnet)<EOL><DEDENT>except dexc.DfaClientRequestFailed:<EOL><INDENT>LOG.error("<STR_LIT>", direc)<EOL>return False<EOL><DEDENT>return True<EOL>
Function to create the service in network in DCNM.