Skip to content

Commit

Permalink
Merge pull request #61 from timohl/master
Browse files Browse the repository at this point in the history
Added probe-with-ssh and probe-hostname to adjust ssh probing of bootup.
  • Loading branch information
timohl authored Dec 1, 2017
2 parents 675435d + f0867b8 commit 8bffee7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 2 additions & 0 deletions include/fast-lib/message/migfra/task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ struct Start :
Optional<Device_ivshmem> ivshmem;
Optional<bool> transient;
Optional<std::vector<std::vector<unsigned int>>> vcpu_map;
Optional<bool> probe_with_ssh;
Optional<std::string> probe_hostname;
};

/**
Expand Down
16 changes: 13 additions & 3 deletions src/message/migfra/task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ Start::Start() :
xml("xml"),
ivshmem("ivshmem"),
transient("transient"),
vcpu_map("vcpu-map")
vcpu_map("vcpu-map"),
probe_with_ssh("probe-with-ssh"),
probe_hostname("probe-hostname")
{
}

Expand All @@ -226,7 +228,9 @@ Start::Start(std::string vm_name, unsigned int vcpus, unsigned long memory, std:
xml("xml"),
ivshmem("ivshmem"),
transient("transient"),
vcpu_map("vcpu-map")
vcpu_map("vcpu-map"),
probe_with_ssh("probe-with-ssh"),
probe_hostname("probe-hostname")
{
}

Expand All @@ -240,7 +244,9 @@ Start::Start(std::string xml, std::vector<PCI_id> pci_ids, bool concurrent_execu
xml("xml", xml),
ivshmem("ivshmem"),
transient("transient"),
vcpu_map("vcpu-map")
vcpu_map("vcpu-map"),
probe_with_ssh("probe-with-ssh"),
probe_hostname("probe-hostname")
{
}

Expand All @@ -261,6 +267,8 @@ YAML::Node Start::emit() const
merge_node(node, vcpu_map.emit());
if (vcpu_map.is_valid())
node[vcpu_map.get_tag()].SetStyle(YAML::EmitterStyle::Flow);
merge_node(node, probe_with_ssh.emit());
merge_node(node, probe_hostname.emit());
return node;
}

Expand All @@ -276,6 +284,8 @@ void Start::load(const YAML::Node &node)
ivshmem.load(node);
transient.load(node);
vcpu_map.load(node);
probe_with_ssh.load(node);
probe_hostname.load(node);
}

//
Expand Down

0 comments on commit 8bffee7

Please sign in to comment.