summaryrefslogtreecommitdiff
path: root/libnm-core
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-01-18 10:43:48 +0100
committerLubomir Rintel <lkundrak@v3.sk>2018-01-18 13:28:12 +0100
commitd50e8d3ec1ded10de97bf6fbcb0ed352e0e8cfb0 (patch)
tree573e339eaa6a5462f292dab0c6fd9c2a5a5336c9 /libnm-core
parent1440fe6a8804c0d2da162ebc91d35a55c5e83f42 (diff)
downloadNetworkManager-d50e8d3ec1ded10de97bf6fbcb0ed352e0e8cfb0.tar.gz
connection: treat connection type's ability to have slaves uniformly
This also adds OVS_BRIDGE and OVS_PORT to places that didn't consider them to be master types
Diffstat (limited to 'libnm-core')
-rw-r--r--libnm-core/nm-core-internal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libnm-core/nm-core-internal.h b/libnm-core/nm-core-internal.h
index 77c7fe2900..7260ebfdb2 100644
--- a/libnm-core/nm-core-internal.h
+++ b/libnm-core/nm-core-internal.h
@@ -496,4 +496,17 @@ gboolean _nm_utils_string_append_tc_tfilter_rest (GString *string,
/*****************************************************************************/
+static inline gboolean
+_nm_connection_type_is_master (const char *type)
+{
+ return (NM_IN_STRSET (type,
+ NM_SETTING_BOND_SETTING_NAME,
+ NM_SETTING_BRIDGE_SETTING_NAME,
+ NM_SETTING_TEAM_SETTING_NAME,
+ NM_SETTING_OVS_BRIDGE_SETTING_NAME,
+ NM_SETTING_OVS_PORT_SETTING_NAME));
+}
+
+/*****************************************************************************/
+
#endif