[Libvirt-cim] [PATCH] Add network device support for Containers in DefineSystem()

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Tue Sep 30 16:58:12 UTC 2008


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1222793853 25200
# Node ID 45420ac045c39b2bbd0737ff86aaf404b9bd6d64
# Parent  f1e00176a0991945dee31e9767a6868e866ce637
Add network device support for Containers in DefineSystem()

Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>

diff -r f1e00176a099 -r 45420ac045c3 src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c	Mon Sep 29 18:08:20 2008 -0700
+++ b/src/Virt_VirtualSystemManagementService.c	Tue Sep 30 09:57:33 2008 -0700
@@ -541,6 +541,8 @@
                 return mem_rasd_to_vdev(inst, dev);
         } else if (type == CIM_RES_TYPE_DISK) {
                 return lxc_disk_rasd_to_vdev(inst, dev);
+        } else if (type == CIM_RES_TYPE_NET) {
+                return net_rasd_to_vdev(inst, dev, ns);
         }
 
         return "Resource type not supported on this platform";




More information about the Libvirt-cim mailing list