Revert "libvirt: add method to configure migration speed"
This reverts commit 23446a9552
.
With change Ibf2b5eeafd962e93ae4ab6290015d58c33024132 there
is nothing using the migrate_configure_max_speed method any
longer and can be removed. An additional mock, added after
the change being reverted, is also removed.
Change-Id: I90d6e14bf9383bf71d65d2180474ba228db2feab
Related-Bug: #1786346
This commit is contained in:
parent
6522ea3ecf
commit
79a74d8185
|
@ -783,9 +783,6 @@ class Domain(object):
|
|||
def migrateSetMaxDowntime(self, downtime):
|
||||
pass
|
||||
|
||||
def migrateSetMaxSpeed(self, bandwidth):
|
||||
pass
|
||||
|
||||
def attachDevice(self, xml):
|
||||
result = False
|
||||
if xml.startswith("<disk"):
|
||||
|
|
|
@ -669,10 +669,6 @@ class GuestTestCase(test.NoDBTestCase):
|
|||
self.guest.migrate_configure_max_downtime(1000)
|
||||
self.domain.migrateSetMaxDowntime.assert_called_once_with(1000)
|
||||
|
||||
def test_migrate_configure_max_speed(self):
|
||||
self.guest.migrate_configure_max_speed(1000)
|
||||
self.domain.migrateSetMaxSpeed.assert_called_once_with(1000)
|
||||
|
||||
|
||||
class GuestBlockTestCase(test.NoDBTestCase):
|
||||
|
||||
|
|
|
@ -683,13 +683,6 @@ class Guest(object):
|
|||
"""
|
||||
self._domain.migrateSetMaxDowntime(mstime)
|
||||
|
||||
def migrate_configure_max_speed(self, bandwidth):
|
||||
"""The maximum bandwidth that will be used to do migration
|
||||
|
||||
:param bw: Bandwidth in MiB/s
|
||||
"""
|
||||
self._domain.migrateSetMaxSpeed(bandwidth)
|
||||
|
||||
def migrate_start_postcopy(self):
|
||||
"""Switch running live migration to post-copy mode"""
|
||||
self._domain.migrateStartPostCopy()
|
||||
|
|
Loading…
Reference in New Issue