summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-09-16 13:42:23 -0400
committerDan Winship <danw@gnome.org>2013-09-24 11:54:34 -0400
commite1e4740648d3ee522c8a80d1af6282afce94f53d (patch)
treec15272e9a00e8c85ab7a7b88a28b8ede449c40db
parentb91d029021552100599db60bc7259efbef1d71a8 (diff)
downloadNetworkManager-e1e4740648d3ee522c8a80d1af6282afce94f53d.tar.gz
cli: recognize InfiniBand partitions as virtual
We don't need to hardcode the kinds of devices that are virtual here; NMConnection already knows.
-rw-r--r--cli/src/connections.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/src/connections.c b/cli/src/connections.c
index 1397cdefc4..10546267e9 100644
--- a/cli/src/connections.c
+++ b/cli/src/connections.c
@@ -1612,10 +1612,7 @@ do_connection_up (NmCli *nmc, int argc, char **argv)
g_assert (s_con);
con_type = nm_setting_connection_get_connection_type (s_con);
- if ( nm_connection_is_type (connection, NM_SETTING_BOND_SETTING_NAME)
- || nm_connection_is_type (connection, NM_SETTING_TEAM_SETTING_NAME)
- || nm_connection_is_type (connection, NM_SETTING_VLAN_SETTING_NAME)
- || nm_connection_is_type (connection, NM_SETTING_BRIDGE_SETTING_NAME))
+ if (nm_connection_get_virtual_iface_name (connection))
is_virtual = TRUE;
device_found = find_device_for_connection (nmc, connection, ifname, ap, nsp, &device, &spec_object, &error);