Ejemplo n.º 1
0
    def data(self):
        # Populate Clusto                                                                                                       
        ServerClass("Class 7")
        HostState("up")
        h1 = Class7Server("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")
        rack1.attach_pdu(pdu)


        switch1 = LindenSwitch()
        switch1.set_port_attr("nic-eth", 1, "mac", "aa:bb:cc:11:22:99")

        rack1.insert(switch1, 2)
        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"