migrate_hook.patch
src/vm/VirtualMachinePool.cc | ||
---|---|---|
170 | 170 | |
171 | 171 |
state_hook = true; |
172 | 172 |
} |
173 |
else if ( on == "MIGRATE" ) |
|
174 |
{ |
|
175 |
VirtualMachineStateHook * hook; |
|
176 | ||
177 |
hook = new VirtualMachineStateHook(name, cmd, arg, remote, |
|
178 |
VirtualMachine::MIGRATE, VirtualMachine::ACTIVE); |
|
179 |
add_hook(hook); |
|
180 | ||
181 |
state_hook = true; |
|
182 |
} |
|
173 | 183 |
else if ( on == "FAILED" ) |
174 | 184 |
{ |
175 | 185 |
VirtualMachineStateHook * hook; |