Пример #1
0
def get_computers():
    c = []
    # Lawson
    c.extend(Computer.many("K9", "%02d", "LWSN B160", 0, 25))
    # c.extend(Computer.many("HA", "%02d", "HAAS G56", 0, 24))

    # MC01-MC18 are servers
    return c
Пример #2
0
def get_computers():
	c = []
	#Lawson
	c.extend(Computer.many("SAC", "%02d", "LWSN B131", 1, 13))
	c.extend(Computer.many("MOORE", "%02d", "LWSN B146", 0, 24))
	c.extend(Computer.many("SSLAB", "%02d", "LWSN B158", 0, 24))
	
	#POD Lab
	c.append(Computer("POD0-0", "POD", "LWSN B148"))
	c.extend(Computer.many("POD", "1-%d", "LWSN B148", 1, 5))
	c.extend(Computer.many("POD", "2-%d", "LWSN B148", 1, 5))
	c.extend(Computer.many("POD", "3-%d", "LWSN B148", 1, 5))
	c.extend(Computer.many("POD", "4-%d", "LWSN B148", 1, 5))
	c.extend(Computer.many("POD", "5-%d", "LWSN B148", 1, 5))
	
	#HAAS
	c.extend(Computer.many("BORG", "%02d", "HAAS G40", 0, 24))
	c.extend(Computer.many("XINU", "%02d", "HAAS 257", 0, 21))
	
	#MC01-MC18 are servers
	return c