MCPcopy
hub / github.com/retspen/webvirtcloud / moveto

Method moveto

vrtManager/instance.py:69–78  ·  view source on GitHub ↗
(self, conn, name, live, unsafe, undefine)

Source from the content-addressed store, hash-verified

67 dom.resume()
68
69 def moveto(self, conn, name, live, unsafe, undefine):
70 flags = 0
71 if live and conn.get_status() == 1:
72 flags |= VIR_MIGRATE_LIVE
73 if unsafe and conn.get_status() == 1:
74 flags |= VIR_MIGRATE_UNSAFE
75 dom = conn.get_instance(name)
76 dom.migrate(self.wvm, flags, name, None, 0)
77 if undefine:
78 dom.undefine()
79
80 def define_move(self, name):
81 dom = self.get_instance(name)

Callers 1

instanceFunction · 0.80

Calls 2

get_instanceMethod · 0.80
get_statusMethod · 0.45

Tested by

no test coverage detected