os-cmpi-xen
changeset 86:ff99c4398c16
Allow specifying VM UUID on create (DefineSystem).
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author | Jim Fehlig <jfehlig@novell.com> |
---|---|
date | Fri Feb 23 10:24:18 2007 -0700 (2007-02-23) |
parents | 75019e01e546 |
children | 4ae953dc7f33 |
files | ChangeLog src/Xen_VirtualSystemManagementService.c |
line diff
1.1 --- a/ChangeLog Wed Feb 21 15:46:34 2007 -0700 1.2 +++ b/ChangeLog Fri Feb 23 10:24:18 2007 -0700 1.3 @@ -1,3 +1,8 @@ 1.4 +------------------------------------------------------------------- 1.5 +Fri Feb 23 10:22:17 MST 2007 - jfehlig@novell.com 1.6 + 1.7 + - Allow specifying VM UUID on create (DefineSystem). 1.8 + 1.9 ------------------------------------------------------------------- 1.10 Wed Feb 21 15:45:06 MST 2007 - jfehlig@novell.com 1.11
2.1 --- a/src/Xen_VirtualSystemManagementService.c Wed Feb 21 15:46:34 2007 -0700 2.2 +++ b/src/Xen_VirtualSystemManagementService.c Fri Feb 23 10:24:18 2007 -0700 2.3 @@ -1513,6 +1513,11 @@ static int vssd2xenconfig(CMPIInstance * 2.4 { 2.5 CMPIData propertyvalue; 2.6 2.7 + /* 2.8 + * Get domain name. 2.9 + * WARNING! 2.10 + * Do we fail if VirtualSystemIdentifier is not specified? 2.11 + */ 2.12 propertyvalue = CMGetProperty(vssd, "VirtualSystemIdentifier", status); 2.13 if ((status->rc != CMPI_RC_OK) || CMIsNullValue(propertyvalue)) { 2.14 _SBLIM_TRACE(1,("--- failed to retrieve VirtualSystemIndentifier property value")); 2.15 @@ -1520,6 +1525,11 @@ static int vssd2xenconfig(CMPIInstance * 2.16 return 0; 2.17 } 2.18 vm_rec->name_label = CMGetCharPtr(propertyvalue.value.string); 2.19 + 2.20 + /* Get UUID, if specified */ 2.21 + propertyvalue = CMGetProperty(vssd, "UUID", status); 2.22 + if ((status->rc == CMPI_RC_OK) && !CMIsNullValue(propertyvalue)) 2.23 + vm_rec->uuid = CMGetCharPtr(propertyvalue.value.string); 2.24 2.25 /* 2.26 * TODO: