This is a temporary fix to not show OVS bridges when
creating a new bridged network, since that support is
only included in the backend. To be reverted once UI
is adapted to support it.
Signed-off-by: Lucio Correia <luciojhc(a)linux.vnet.ibm.com>
---
netinfo.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/netinfo.py b/netinfo.py
index ff91489..4c7a234 100644
--- a/netinfo.py
+++ b/netinfo.py
@@ -221,7 +221,8 @@ def is_bare_nic(iface):
# a slave of bond.
# The bridge will not be exposed when all it's port are tap.
def all_favored_interfaces():
- return aggregated_bridges() + bare_nics() + bondings()
+ return list(set(aggregated_bridges() + bare_nics() + bondings()) -
+ set(ovs_bridges()))
def get_interface_type(iface):
--
1.9.1