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

Dan Smith danms at us.ibm.com
Wed Apr 9 21:31:44 UTC 2008


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1207776541 25200
# Node ID 0314f5ce51d0d8ba4d518c0a7a22c43e03be4dec
# Parent  17f2f0d424887bc0c51037a3bbc7fd665938e8ba
Make NetRASD expose its MAC in the Address field

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

diff -r 17f2f0d42488 -r 0314f5ce51d0 src/Virt_RASD.c
--- a/src/Virt_RASD.c	Wed Apr 09 14:28:49 2008 -0700
+++ b/src/Virt_RASD.c	Wed Apr 09 14:29:01 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