File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
include/fast-lib/message/migfra Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ struct Swap_with :
162
162
163
163
std::string vm_name;
164
164
Optional<std::string> pscom_hook_procs;
165
+ Optional<std::vector<std::vector<unsigned int >>> vcpu_map;
165
166
};
166
167
167
168
Original file line number Diff line number Diff line change @@ -304,7 +304,8 @@ void Stop::load(const YAML::Node &node)
304
304
//
305
305
306
306
Swap_with::Swap_with () :
307
- pscom_hook_procs (" pscom-hook-procs" )
307
+ pscom_hook_procs (" pscom-hook-procs" ),
308
+ vcpu_map (" vcpu-map" )
308
309
{
309
310
}
310
311
@@ -313,13 +314,15 @@ YAML::Node Swap_with::emit() const
313
314
YAML::Node node;
314
315
node[" vm-name" ] = vm_name;
315
316
merge_node (node, pscom_hook_procs.emit ());
317
+ merge_node (node, vcpu_map.emit ());
316
318
return node;
317
319
}
318
320
319
321
void Swap_with::load (const YAML::Node &node)
320
322
{
321
323
fast::load (vm_name, node[" vm-name" ]);
322
324
pscom_hook_procs.load (node);
325
+ vcpu_map.load (node);
323
326
}
324
327
325
328
//
You can’t perform that action at this time.
0 commit comments