diff options
author | Simon Rettberg | 2024-06-27 14:35:45 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-06-27 14:35:45 +0200 |
commit | 1564313ae4822273fc90e6ee68558e8dd54e8be8 (patch) | |
tree | f559fe560ec0baedeef591ec453dcb894dd4d8aa /src/main/java/org/openslx/libvirt/domain/Domain.java | |
parent | Replace growing thread pool by cascaded one (diff) | |
download | master-sync-shared-1564313ae4822273fc90e6ee68558e8dd54e8be8.tar.gz master-sync-shared-1564313ae4822273fc90e6ee68558e8dd54e8be8.tar.xz master-sync-shared-1564313ae4822273fc90e6ee68558e8dd54e8be8.zip |
[libvirt] Add getter/setter for os firmware
Diffstat (limited to 'src/main/java/org/openslx/libvirt/domain/Domain.java')
-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 c19b2a3..af3e63c 100644 --- a/src/main/java/org/openslx/libvirt/domain/Domain.java +++ b/src/main/java/org/openslx/libvirt/domain/Domain.java @@ -562,6 +562,26 @@ public class Domain extends LibvirtXmlDocument } /** + * Returns OS firmware defined in the Libvirt domain XML document. + * + * @return OS firmware of the virtual machine. + */ + public String getOsFirmware() + { + return this.getRootXmlNode().getXmlElementAttributeValue( "os", "firmware" ); + } + + /** + * Set OS firmware in the Libvirt domain XML document. + * + * @param firmware OS machine for the virtual machine. + */ + public void setOsFirmware( String firmware ) + { + this.getRootXmlNode().setXmlElementAttributeValue( "os", "firmware", firmware ); + } + + /** * Returns OS Nvram defined in the Libvirt domain XML document. * * @return OS Nvram of the virtual machine. |