[Libvirt-cim] [PATCH] Add bridge network type

lizg at cn.ibm.com lizg at cn.ibm.com
Fri Nov 16 07:51:12 UTC 2007


# HG changeset patch
# User Zhengang Li <lizg at cn.ibm.com>
# Date 1195194642 -28800
# Node ID fcc119ccdfa54df6f6296d2174670042b7b6d75a
# Parent  99988c7788133e216451cc0c1f3440260e996fbf
Add bridge network type

Signed-off-by: Zhengang Li <lizg at cn.ibm.com>

diff -r 99988c778813 -r fcc119ccdfa5 src/Virt_Device.c
--- a/src/Virt_Device.c	Fri Nov 16 14:24:36 2007 +0800
+++ b/src/Virt_Device.c	Fri Nov 16 14:30:42 2007 +0800
@@ -47,7 +47,8 @@ static int net_set_type(CMPIInstance *in
 {
         uint16_t cim_type;
 
-        if (STREQC(dev->type, "ethernet"))
+        if (STREQC(dev->type, "ethernet") ||
+            STREQC(dev->type, "bridge"))
                 cim_type = CIM_NET_ETHERNET;
         else
                 cim_type = CIM_NET_UNKNOWN;




More information about the Libvirt-cim mailing list