Ejemplo n.º 1
0
    def data(self):
        # Populate Clusto                                                                                                       
        ServerClass("Class 5")
        HostState("up")
        h1 = Class5Server("hostname1.lindenlab.com")
        h1.serial_number = "SM55880"
        h1.set_port_attr("nic-eth", 1, "mac", "aa:bb:cc:11:22:33")
        h1.set_port_attr("nic-eth", 2, "mac", "aa:bb:cc:11:22:34")

        dfw = LindenDatacenter("DFW", "1234 Anywhere", "123 Anywhere street", "*****@*****.**")

        rack1 = LindenRack("c1.01.1000")
        dfw.insert(rack1)

        pdu = LindenPDU()
        pdu.set_port_attr("nic-eth", 1, "mac", "aa:bb:cc:11:22:12")
        pdu.hostname = "pdu1.lindenlab.com"
        pdu.connect_ports("pwr-nema-5",1,h1,1)

        rack1.attach_pdu(pdu)
        rack1.insert(h1, 1)
Ejemplo n.º 2
0
 def data(self):
     class5 = ServerClass("Class 5", num_cpus=1, cores_per_cpu=2, ram_size=3, disk_size=4)
     HostState("up")
     Class5Server("sim8000.agni.lindenlab.com")
     pdu = LindenPDU()
     pdu.hostname = "pdu1-c1-01-20.dca.lindenlab.com"
Ejemplo n.º 3
0
 def data(self):
     # Populate Clusto
     pdu1 = LindenPDU()
     pdu2 = LindenPDU()
     pdu1.hostname = "pdu1.lindenlab.com"
     pdu2.hostname = "pdu2.lindenlab.com"