47 |
|
""" |
48 |
|
siteList = self._Server.sitenames().split() |
49 |
|
return siteList |
50 |
+ |
|
51 |
+ |
def mapSEtoCE(self, se_hostname): |
52 |
+ |
""" |
53 |
+ |
_mapSEtoCE_ |
54 |
+ |
returns CE(s) for an OSG SE |
55 |
+ |
Default None |
56 |
+ |
""" |
57 |
+ |
# special : Multipel SE -> Single CE |
58 |
+ |
if se_hostname == "spraid.if.usp.br" : se_hostname = "spdc00.if.usp.br" |
59 |
+ |
ce_hostnames=[] |
60 |
+ |
try: |
61 |
+ |
ce_hostnames.append(self._Server.getresult("sites", "ldap_server_hostname", "WHERE ss_gatekeeper_hostname='"+se_hostname+"'").strip()) |
62 |
+ |
|
63 |
+ |
# special : Mutiple CE <- Single SE |
64 |
+ |
if ce_hostnames[0] == 'cithep90.ultralight.org' : |
65 |
+ |
ce_hostnames=[] |
66 |
+ |
ce_hostnames.append('cit-gatekeeper.ultralight.org') |
67 |
+ |
|
68 |
+ |
if ce_hostnames[0] == 'ufloridapg.phys.ufl.edu' : |
69 |
+ |
ce_hostnames.append('ufgrid01.phys.ufl.edu') |
70 |
+ |
ce_hostnames.append('iogw1.hpc.ufl.edu') |
71 |
+ |
|
72 |
+ |
if ce_hostnames[0] == 'osg.rcac.purdue.edu' : |
73 |
+ |
ce_hostnames.append('lepton.rcac.purdue.edu') |
74 |
+ |
|
75 |
+ |
except StandardError, ex: |
76 |
+ |
ce_hostnames=None |
77 |
+ |
|
78 |
+ |
return ce_hostnames |
79 |
|
|
80 |
|
|
81 |
|
|