summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/libvirt/domain
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/libvirt/domain')
-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 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.