8 meta_sites = ['canarie', 'rnp', 'jgn2', 'i2', 'tp', 'princeton', 'princetondsl', 'plcolo', 'wide']
9 l_blacklist = [ "grouse.hpl.hp.com", "planet1.att.nodes.planet-lab.org"]
10 #l_blacklist = soltesz.dbLoad("l_blacklist")
13 # for each prefix above
14 for pre_loginbase in meta_sites:
15 print "getting sites from base %s*" % pre_loginbase
16 search_sites = plc.getSites({'login_base' : pre_loginbase + "*"})
17 # for each of the sites that begin with this prefix
18 for site in search_sites:
19 # get the nodes for that site
20 l_sitelist.append(site['login_base'])
21 print "%s : " % site['login_base']
22 nodes = plc.getSiteNodes2(site['login_base'])
25 if hn not in l_blacklist:
28 # add the nodes to the blacklist
29 l_blacklist.append(hn)
31 # print "not adding %s" % hn
32 print string.join(l_sitelist, ",")
33 print "Found %d nodes" % count
34 print "Found %d sites " % len(l_sitelist)
36 soltesz.dbDump("l_blacklist")
38 if __name__=="__main__":