Beispiel #1
0
 def get_snap(self, name=None):
     if name is not None:
         ret = VNXSnap.get(self._cli, name)
     else:
         snaps = VNXSnap.get(self._cli)
         ret = [s for s in snaps if self.lun_id in s.source_luns]
     return ret
Beispiel #2
0
 def get_snap(self, name=None):
     if name is not None:
         ret = VNXSnap.get(self._cli, name)
     else:
         snaps = VNXSnap.get(self._cli)
         ret = [s for s in snaps if self.lun_id in s.source_luns]
     return ret
Beispiel #3
0
 def get_snap(self, name=None):
     if name is not None:
         ret = VNXSnap.get(self._cli, name)
     else:
         ret = VNXSnapList(self._cli, res=self.get_id(self))
     return ret
Beispiel #4
0
 def f():
     src = VNXSnap.get(t_cli(), name='123')
     src.copy('456')
Beispiel #5
0
 def test_get_not_found(self):
     snap = VNXSnap.get(t_cli(), name='xxx')
     assert_that(snap.existed, equal_to(False))
Beispiel #6
0
 def test_get_by_name(self):
     snap = VNXSnap.get(t_cli(), name='gan_snap')
     assert_that(snap.creation_time, equal_to('05/24/13 20:06:12'))
Beispiel #7
0
 def test_get_all(self):
     snaps = VNXSnap.get(t_cli())
     assert_that(len(snaps), equal_to(47))
Beispiel #8
0
 def get_snap(self, name=None):
     return VNXSnap.get(self._cli, name)
Beispiel #9
0
 def f():
     src = VNXSnap.get(t_cli(), name='123')
     src.copy('456')
Beispiel #10
0
 def test_get_not_found(self):
     snap = VNXSnap.get(t_cli(), name='xxx')
     assert_that(snap.existed, equal_to(False))
Beispiel #11
0
 def test_get_by_name(self):
     snap = VNXSnap.get(t_cli(), name='gan_snap')
     assert_that(snap.creation_time, equal_to('05/24/13 20:06:12'))
Beispiel #12
0
 def test_get_all(self):
     snaps = VNXSnap.get(t_cli())
     assert_that(len(snaps), equal_to(47))
Beispiel #13
0
 def get_snap(self, name=None):
     if name is not None:
         ret = VNXSnap.get(self._cli, name)
     else:
         ret = VNXSnapList(self._cli, res=self.get_id(self))
     return ret