[Kimchi-devel] [PATCH] [Kimchi 1/2] Differentiate network lookup between macvtap and bridge
Lucio Correia
luciojhc at linux.vnet.ibm.com
Thu Dec 3 18:05:46 UTC 2015
Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
---
model/networks.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/model/networks.py b/model/networks.py
index 2856291..6f95f82 100644
--- a/model/networks.py
+++ b/model/networks.py
@@ -324,6 +324,9 @@ class NetworkModel(object):
if connection == 'bridge':
# macvtap bridge
interface = interface or forward['interface'][0]
+ if netinfo.is_nic(interface) or netinfo.is_bonding(interface):
+ connection = 'macvtap'
+
# exposing the network on linux bridge or macvtap interface
interface_subnet = knetwork.get_dev_netaddr(interface)
subnet = subnet if subnet else interface_subnet
--
1.9.1
More information about the Kimchi-devel
mailing list