[Libvirt-cim] [PATCH 1 of 4] Make NetRASD expose its MAC in the Address field

Dan Smith danms at us.ibm.com
Mon Apr 14 16:54:16 UTC 2008


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1208191947 25200
# Node ID cd5c245ad76e4b397f13fc9f4eab540d071921a5
# Parent  327cfc9f69191f5a2f0454290c8ecf02e223d4dd
Make NetRASD expose its MAC in the Address field

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r 327cfc9f6919 -r cd5c245ad76e src/Virt_RASD.c
--- a/src/Virt_RASD.c	Mon Apr 14 09:44:04 2008 -0700
+++ b/src/Virt_RASD.c	Mon Apr 14 09:52:27 2008 -0700
@@ -157,6 +157,10 @@ static CMPIInstance *rasd_from_vdev(cons
                               "NetworkType",
                               (CMPIValue *)dev->dev.net.type,
                               CMPI_chars);
+                CMSetProperty(inst,
+                              "Address",
+                              (CMPIValue *)dev->dev.net.mac,
+                              CMPI_chars);
         } else if (dev->type == CIM_RES_TYPE_MEM) {
                 const char *units = "KiloBytes";
 




More information about the Libvirt-cim mailing list