diff options
author | Manuel Bentele | 2021-10-22 16:13:49 +0200 |
---|---|---|
committer | Manuel Bentele | 2021-10-22 16:13:49 +0200 |
commit | 121aed8c48ae5f05339a2d5d4e36cd94f833b20a (patch) | |
tree | 29d80006741b687e1c263d733a09d06479bf94e2 | |
parent | Update QEMU hardware versions to available versions from QEMU 6.1 (diff) | |
download | master-sync-shared-121aed8c48ae5f05339a2d5d4e36cd94f833b20a.tar.gz master-sync-shared-121aed8c48ae5f05339a2d5d4e36cd94f833b20a.tar.xz master-sync-shared-121aed8c48ae5f05339a2d5d4e36cd94f833b20a.zip |
Extend Libvirt domain XML to get/set OS firmware loader
-rw-r--r-- | src/main/java/org/openslx/libvirt/domain/Domain.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/libvirt/domain/Domain.java b/src/main/java/org/openslx/libvirt/domain/Domain.java index d6f9a8f..cbbf827 100644 --- a/src/main/java/org/openslx/libvirt/domain/Domain.java +++ b/src/main/java/org/openslx/libvirt/domain/Domain.java @@ -505,6 +505,26 @@ public class Domain extends LibvirtXmlDocument } /** + * Returns OS loader defined in the Libvirt domain XML document. + * + * @return OS loader of the virtual machine. + */ + public String getOsLoader() + { + return this.getRootXmlNode().getXmlElementValue( "os/loader" ); + } + + /** + * Set OS loader in the Libvirt domain XML document. + * + * @param loader OS loader for the virtual machine. + */ + public void setOsLoader( String loader ) + { + this.getRootXmlNode().setXmlElementValue( "os/loader", loader ); + } + + /** * Operating system types specifiable for a virtual machine in the Libvirt domain XML document. * * @author Manuel Bentele |