Signed-off-by: Lucio Correia <luciojhc(a)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