예제 #1
0
파일: driver.py 프로젝트: HalasNet/felix
 def get_specific_server_and_vms(self, urn):
     resources = list()
     for i in range(0, 10):
         r = ResourceMocker()
         r.set_component_id("this_is_a_urn_WITH_SLIVER_%d" % i)
         if i > 5:
             r.set_operational_state("geni_ready")
         else:
             r.set_operational_state("geni_failed")
         resources.append(r)
     return resources
예제 #2
0
 def get_specific_server_and_vms(self, urn):
     resources = list()
     for i in range(0, 10):
         r = ResourceMocker()
         r.set_component_id("this_is_a_urn_WITH_SLIVER_%d" % i)
         if i > 5:
             r.set_operational_state("geni_ready")
         else:
             r.set_operational_state("geni_failed")
         resources.append(r)
     return resources
예제 #3
0
파일: driver.py 프로젝트: HalasNet/felix
 def create_vms(self, urn):
     resources = list()
     for i in range(0, 2):
         r = ResourceMocker()
         r.set_component_id("this_is_a_urn_%d" % i)
         r.set_operational_state = "geni_notready"
         resources.append(r)
     return resources
예제 #4
0
 def create_vms(self, urn):
     resources = list()
     for i in range(0, 2):
         r = ResourceMocker()
         r.set_component_id("this_is_a_urn_%d" % i)
         r.set_operational_state = "geni_notready"
         resources.append(r)
     return resources
예제 #5
0
파일: driver.py 프로젝트: HalasNet/felix
 def renew_vms(self, expiration, urn):
     r = ResourceMocker()
     r.set_operational_state("geni_ready")
     return r
예제 #6
0
파일: driver.py 프로젝트: HalasNet/felix
 def delete_vm(self, urn):
     r = ResourceMocker()
     r.set_operational_state("geni_notready")
     return r
예제 #7
0
파일: driver.py 프로젝트: HalasNet/felix
 def reboot_vm(self, urn):
     r = ResourceMocker()
     r.set_operational_state("geni_ready")
     return r
예제 #8
0
 def renew_vms(self, expiration, urn):
     r = ResourceMocker()
     r.set_operational_state("geni_ready")
     return r
예제 #9
0
 def delete_vm(self, urn):
     r = ResourceMocker()
     r.set_operational_state("geni_notready")
     return r
예제 #10
0
 def reboot_vm(self, urn):
     r = ResourceMocker()
     r.set_operational_state("geni_ready")
     return r