summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2021-10-22 16:13:49 +0200
committerManuel Bentele2021-10-22 16:13:49 +0200
commit121aed8c48ae5f05339a2d5d4e36cd94f833b20a (patch)
tree29d80006741b687e1c263d733a09d06479bf94e2
parentUpdate QEMU hardware versions to available versions from QEMU 6.1 (diff)
downloadmaster-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.java20
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