Esempio n. 1
0
 def CreateSliver(self,xrn,rspec_string,users,creds,options):
     xrn = Xrn(xrn, 'slice')
     slice_leaf = xrn.get_leaf()
     slice_hrn = xrn.get_hrn()
     authority = xrn.get_authority_hrn()
     expiration_date = self.driver.get_expiration(creds, slice_hrn)
     return self.driver.create_sliver (slice_leaf,authority,rspec_string, users, options, expiration_date)
Esempio n. 2
0
 def CreateSliver(self, xrn, rspec_string, users, creds, options):
     xrn = Xrn(xrn, "slice")
     slice_leaf = xrn.get_leaf()
     slice_hrn = xrn.get_hrn()
     authority = xrn.get_authority_hrn()
     expiration_date = self.driver.get_expiration(creds, slice_hrn)
     return self.driver.create_sliver(slice_leaf, authority, rspec_string, users, options, expiration_date)
Esempio n. 3
0
    def reset_slice(self,xrn):
        xrn = Xrn(xrn)
	slice_leaf = xrn.get_leaf()
	authority = xrn.get_authority_hrn()
        return self.driver.crud_slice (slice_leaf,authority,action='reset_slice')
Esempio n. 4
0
    def DeleteSliver(self, xrn, options):
	#TODO: Check the options or xrn to get a single vm.
        xrn = Xrn(xrn)
        slice_leaf = xrn.get_leaf()
	authority = xrn.get_authority_hrn()
        return self.driver.crud_slice(slice_leaf,authority,action='delete_slice')
Esempio n. 5
0
    def SliverStatus (self, xrn, options):
        xrn = Xrn(xrn,'slice')
	slice_leaf = xrn.get_leaf()
	authority = xrn.get_authority_hrn()
	return self.driver.sliver_status(slice_leaf,authority,options)
Esempio n. 6
0
 def reset_slice(self, xrn):
     xrn = Xrn(xrn)
     slice_leaf = xrn.get_leaf()
     authority = xrn.get_authority_hrn()
     return self.driver.crud_slice(slice_leaf, authority, action="reset_slice")
Esempio n. 7
0
 def DeleteSliver(self, xrn, options):
     # TODO: Check the options or xrn to get a single vm.
     xrn = Xrn(xrn)
     slice_leaf = xrn.get_leaf()
     authority = xrn.get_authority_hrn()
     return self.driver.crud_slice(slice_leaf, authority, action="delete_slice")
Esempio n. 8
0
 def SliverStatus(self, xrn, options):
     xrn = Xrn(xrn, "slice")
     slice_leaf = xrn.get_leaf()
     authority = xrn.get_authority_hrn()
     return self.driver.sliver_status(slice_leaf, authority, options)