[PATCH 1/2] ch: Enable bridge network mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tested with following interface config:

 <interface type='bridge'>
    <mac address='52:54:00:71:b9:b6'/>
    <source bridge='clhbr0'/>
    <model type='virtio'/>
 </interface>

Signed-off-by: Praveen K Paladugu <praveenkpaladugu@xxxxxxxxx>
Signed-off-by: Praveen K Paladugu <prapal@xxxxxxxxxxxxxxxxxxx>
---
 src/ch/ch_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ch/ch_interface.c b/src/ch/ch_interface.c
index 47b02bc322..6f6724f960 100644
--- a/src/ch/ch_interface.c
+++ b/src/ch/ch_interface.c
@@ -79,6 +79,7 @@ virCHConnetNetworkInterfaces(virCHDriver *driver,
             return -1;
 
         break;
+    case VIR_DOMAIN_NET_TYPE_BRIDGE:
     case VIR_DOMAIN_NET_TYPE_NETWORK:
         if (virDomainInterfaceBridgeConnect(vm, net,
                                             tapfds,
@@ -89,7 +90,6 @@ virCHConnetNetworkInterfaces(virCHDriver *driver,
                                             NULL) < 0)
             return -1;
         break;
-    case VIR_DOMAIN_NET_TYPE_BRIDGE:
     case VIR_DOMAIN_NET_TYPE_DIRECT:
     case VIR_DOMAIN_NET_TYPE_USER:
     case VIR_DOMAIN_NET_TYPE_SERVER:
-- 
2.44.0



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux