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 :
162162
163163 std::string vm_name;
164164 Optional<std::string> pscom_hook_procs;
165+ Optional<std::vector<std::vector<unsigned int >>> vcpu_map;
165166};
166167
167168
Original file line number Diff line number Diff line change @@ -304,7 +304,8 @@ void Stop::load(const YAML::Node &node)
304304//
305305
306306Swap_with::Swap_with () :
307- pscom_hook_procs (" pscom-hook-procs" )
307+ pscom_hook_procs (" pscom-hook-procs" ),
308+ vcpu_map (" vcpu-map" )
308309{
309310}
310311
@@ -313,13 +314,15 @@ YAML::Node Swap_with::emit() const
313314 YAML::Node node;
314315 node[" vm-name" ] = vm_name;
315316 merge_node (node, pscom_hook_procs.emit ());
317+ merge_node (node, vcpu_map.emit ());
316318 return node;
317319}
318320
319321void Swap_with::load (const YAML::Node &node)
320322{
321323 fast::load (vm_name, node[" vm-name" ]);
322324 pscom_hook_procs.load (node);
325+ vcpu_map.load (node);
323326}
324327
325328//
You can’t perform that action at this time.
0 commit comments