Merge "Revert "libvirt: add method to configure migration speed""

This commit is contained in:
Zuul 2018-09-18 22:49:49 +00:00 committed by Gerrit Code Review
commit e2a39bb30f
3 changed files with 0 additions and 14 deletions

View File

@ -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"):

View File

@ -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):

View File

@ -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()