Skip to content

Commit 8bffee7

Browse files
authored
Merge pull request #61 from timohl/master
Added probe-with-ssh and probe-hostname to adjust ssh probing of bootup.
2 parents 675435d + f0867b8 commit 8bffee7

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

include/fast-lib/message/migfra/task.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ struct Start :
124124
Optional<Device_ivshmem> ivshmem;
125125
Optional<bool> transient;
126126
Optional<std::vector<std::vector<unsigned int>>> vcpu_map;
127+
Optional<bool> probe_with_ssh;
128+
Optional<std::string> probe_hostname;
127129
};
128130

129131
/**

src/message/migfra/task.cpp

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ Start::Start() :
212212
xml("xml"),
213213
ivshmem("ivshmem"),
214214
transient("transient"),
215-
vcpu_map("vcpu-map")
215+
vcpu_map("vcpu-map"),
216+
probe_with_ssh("probe-with-ssh"),
217+
probe_hostname("probe-hostname")
216218
{
217219
}
218220

@@ -226,7 +228,9 @@ Start::Start(std::string vm_name, unsigned int vcpus, unsigned long memory, std:
226228
xml("xml"),
227229
ivshmem("ivshmem"),
228230
transient("transient"),
229-
vcpu_map("vcpu-map")
231+
vcpu_map("vcpu-map"),
232+
probe_with_ssh("probe-with-ssh"),
233+
probe_hostname("probe-hostname")
230234
{
231235
}
232236

@@ -240,7 +244,9 @@ Start::Start(std::string xml, std::vector<PCI_id> pci_ids, bool concurrent_execu
240244
xml("xml", xml),
241245
ivshmem("ivshmem"),
242246
transient("transient"),
243-
vcpu_map("vcpu-map")
247+
vcpu_map("vcpu-map"),
248+
probe_with_ssh("probe-with-ssh"),
249+
probe_hostname("probe-hostname")
244250
{
245251
}
246252

@@ -261,6 +267,8 @@ YAML::Node Start::emit() const
261267
merge_node(node, vcpu_map.emit());
262268
if (vcpu_map.is_valid())
263269
node[vcpu_map.get_tag()].SetStyle(YAML::EmitterStyle::Flow);
270+
merge_node(node, probe_with_ssh.emit());
271+
merge_node(node, probe_hostname.emit());
264272
return node;
265273
}
266274

@@ -276,6 +284,8 @@ void Start::load(const YAML::Node &node)
276284
ivshmem.load(node);
277285
transient.load(node);
278286
vcpu_map.load(node);
287+
probe_with_ssh.load(node);
288+
probe_hostname.load(node);
279289
}
280290

281291
//

0 commit comments

Comments
 (0)