mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-31 00:45:18 +00:00
ch: Enable bridge network mode
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@gmail.com> Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
8a44f78625
commit
d9be0beb4c
@ -101,6 +101,7 @@ virCHConnetNetworkInterfaces(virCHDriver *driver,
|
|||||||
if (virCHInterfaceUpdateNicindexes(net, nicindexes, nnicindexes) < 0)
|
if (virCHInterfaceUpdateNicindexes(net, nicindexes, nnicindexes) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
break;
|
break;
|
||||||
|
case VIR_DOMAIN_NET_TYPE_BRIDGE:
|
||||||
case VIR_DOMAIN_NET_TYPE_NETWORK:
|
case VIR_DOMAIN_NET_TYPE_NETWORK:
|
||||||
if (virDomainInterfaceBridgeConnect(vm, net,
|
if (virDomainInterfaceBridgeConnect(vm, net,
|
||||||
tapfds,
|
tapfds,
|
||||||
@ -114,7 +115,6 @@ virCHConnetNetworkInterfaces(virCHDriver *driver,
|
|||||||
if (virCHInterfaceUpdateNicindexes(net, nicindexes, nnicindexes) < 0)
|
if (virCHInterfaceUpdateNicindexes(net, nicindexes, nnicindexes) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
break;
|
break;
|
||||||
case VIR_DOMAIN_NET_TYPE_BRIDGE:
|
|
||||||
case VIR_DOMAIN_NET_TYPE_DIRECT:
|
case VIR_DOMAIN_NET_TYPE_DIRECT:
|
||||||
if (virCHInterfaceUpdateNicindexes(net, nicindexes, nnicindexes) < 0)
|
if (virCHInterfaceUpdateNicindexes(net, nicindexes, nnicindexes) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user