SitesDIRACGOCDBmapping

The SitesDIRACGOCDBmapping module performs the necessary CS gymnastics to resolve sites DIRAC-GOCDB names.

Assumes CS structure of: /Resources/Sites/<GRIDNAME>/<SITENAME>

DIRAC.Core.Utilities.SitesDIRACGOCDBmapping.getDIRACGOCDictionary()

Create a dictionary containing DIRAC site names and GOCDB site names using a configuration provided by CS.

Returns:A dictionary of DIRAC site names (key) and GOCDB site names (value).
DIRAC.Core.Utilities.SitesDIRACGOCDBmapping.getDIRACSesForSRM(srmService)
DIRAC.Core.Utilities.SitesDIRACGOCDBmapping.getDIRACSiteName(gocSiteName)

Get DIRAC site name, given the GOC DB site name, as it stored in the CS

Params:gocSiteName - string: GOC DB site name (e.g. ‘CERN-PROD’)
DIRAC.Core.Utilities.SitesDIRACGOCDBmapping.getGOCFTSName(diracFTSName)

Get GOC DB FTS server URL, given the DIRAC FTS server name, as it stored in the CS

Params:diracFTSName - string: DIRAC FTS server name (e.g. ‘CERN-FTS3’)
DIRAC.Core.Utilities.SitesDIRACGOCDBmapping.getGOCSiteName(diracSiteName)

Get GOC DB site name, given the DIRAC site name, as it stored in the CS

Params:diracSiteName - string: DIRAC site name (e.g. ‘LCG.CERN.ch’)