# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1198182621 -3600
# Node ID 2ca0648a068045d57f1329bab6f78ecf2dff8588
# Parent 6d1e90a790bb8f1989e1da30f093457a06d2792b
ResourceAllocationSettingData: OpenWbem support
- rename provider from RASDProvider to RASD
- update registration file with new providername
- add "Provider" qualifier to mof
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r 6d1e90a790bb -r 2ca0648a0680 schema/ResourceAllocationSettingData.mof
--- a/schema/ResourceAllocationSettingData.mof Thu Dec 20 21:30:20 2007 +0100
+++ b/schema/ResourceAllocationSettingData.mof Thu Dec 20 21:30:21 2007 +0100
@@ -8,7 +8,9 @@ class KVM_ResourceAllocationSettingData
{
};
-[Description ("Xen virtual disk configuration")]
+[Description ("Xen virtual disk configuration"),
+ Provider("cmpi::Virt_RASD")
+]
class Xen_DiskResourceAllocationSettingData : Xen_ResourceAllocationSettingData
{
@@ -17,7 +19,9 @@ class Xen_DiskResourceAllocationSettingD
};
-[Description ("KVM virtual disk configuration")]
+[Description ("KVM virtual disk configuration"),
+ Provider("cmpi::Virt_RASD")
+]
class KVM_DiskResourceAllocationSettingData : KVM_ResourceAllocationSettingData
{
@@ -26,7 +30,9 @@ class KVM_DiskResourceAllocationSettingD
};
-[Description ("Xen virtual network configuration")]
+[Description ("Xen virtual network configuration"),
+ Provider("cmpi::Virt_RASD")
+]
class Xen_NetResourceAllocationSettingData : Xen_ResourceAllocationSettingData
{
@@ -35,7 +41,9 @@ class Xen_NetResourceAllocationSettingDa
};
-[Description ("KVM virtual network configuration")]
+[Description ("KVM virtual network configuration"),
+ Provider("cmpi::Virt_RASD")
+]
class KVM_NetResourceAllocationSettingData : KVM_ResourceAllocationSettingData
{
@@ -44,22 +52,30 @@ class KVM_NetResourceAllocationSettingDa
};
-[Description ("Xen virtual processor")]
+[Description ("Xen virtual processor"),
+ Provider("cmpi::Virt_RASD")
+]
class Xen_ProcResourceAllocationSettingData : Xen_ResourceAllocationSettingData
{
};
-[Description ("KVM virtual processor")]
+[Description ("KVM virtual processor"),
+ Provider("cmpi::Virt_RASD")
+]
class KVM_ProcResourceAllocationSettingData : KVM_ResourceAllocationSettingData
{
};
-[Description ("Xen virtual memory")]
+[Description ("Xen virtual memory"),
+ Provider("cmpi::Virt_RASD")
+]
class Xen_MemResourceAllocationSettingData : Xen_ResourceAllocationSettingData
{
};
-[Description ("KVM virtual memory")]
+[Description ("KVM virtual memory"),
+ Provider("cmpi::Virt_RASD")
+]
class KVM_MemResourceAllocationSettingData : KVM_ResourceAllocationSettingData
{
};
diff -r 6d1e90a790bb -r 2ca0648a0680 schema/ResourceAllocationSettingData.registration
--- a/schema/ResourceAllocationSettingData.registration Thu Dec 20 21:30:20 2007 +0100
+++ b/schema/ResourceAllocationSettingData.registration Thu Dec 20 21:30:21 2007 +0100
@@ -1,6 +1,6 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes
-Xen_DiskResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance
-Xen_NetResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance
-Xen_ProcResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance
-Xen_MemResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance
+Xen_DiskResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance
+Xen_NetResourceAllocationSettingData root/virt Virt_RASDP Virt_RASD instance
+Xen_ProcResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance
+Xen_MemResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance
diff -r 6d1e90a790bb -r 2ca0648a0680 src/Virt_RASD.c
--- a/src/Virt_RASD.c Thu Dec 20 21:30:20 2007 +0100
+++ b/src/Virt_RASD.c Thu Dec 20 21:30:21 2007 +0100
@@ -342,7 +342,10 @@ DEFAULT_INST_CLEANUP();
DEFAULT_INST_CLEANUP();
DEFAULT_EQ();
-STD_InstanceMIStub(, Virt_RASDProvider, _BROKER, libvirt_cim_init());
+STD_InstanceMIStub(,
+ Virt_RASD,
+ _BROKER,
+ libvirt_cim_init());
/*
* Local Variables: