diff options
Diffstat (limited to 'libnm-core/nm-connection.c')
-rw-r--r-- | libnm-core/nm-connection.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/libnm-core/nm-connection.c b/libnm-core/nm-connection.c index 307b9d6234..2d9974b476 100644 --- a/libnm-core/nm-connection.c +++ b/libnm-core/nm-connection.c @@ -891,6 +891,8 @@ _supports_addr_family (NMConnection *self, int family) g_return_val_if_fail (connection_type, TRUE); if (strcmp (connection_type, NM_SETTING_OVS_INTERFACE_SETTING_NAME) == 0) return TRUE; + if (strcmp (connection_type, NM_SETTING_CONTRAIL_VROUTER_SETTING_NAME) == 0) + return TRUE; if (strcmp (connection_type, NM_SETTING_WPAN_SETTING_NAME) == 0) return FALSE; if (strcmp (connection_type, NM_SETTING_6LOWPAN_SETTING_NAME) == 0) @@ -2694,7 +2696,8 @@ nm_connection_is_virtual (NMConnection *connection) NM_SETTING_TUN_SETTING_NAME, NM_SETTING_VLAN_SETTING_NAME, NM_SETTING_VXLAN_SETTING_NAME, - NM_SETTING_WIREGUARD_SETTING_NAME)) + NM_SETTING_WIREGUARD_SETTING_NAME, + NM_SETTING_CONTRAIL_VROUTER_SETTING_NAME)) return TRUE; if (nm_streq (type, NM_SETTING_INFINIBAND_SETTING_NAME)) { @@ -3339,6 +3342,22 @@ _nm_connection_get_setting_bluetooth_for_nap (NMConnection *connection) return NULL; } +/** + * nm_connection_get_setting_contrail_vrouter: + * @connection: the #NMConnection + * + * A shortcut to return any #NMSettingContrailVrouter the connection might contain. + * + * Returns: (transfer none): an #NMSettingContrailVrouter if the connection contains one, otherwise %NULL + * + * Since: 1.14 + **/ +NMSettingContrailVrouter * +nm_connection_get_setting_contrail_vrouter (NMConnection *connection) +{ + return _connection_get_setting_check (connection, NM_TYPE_SETTING_CONTRAIL_VROUTER); +} + /*****************************************************************************/ static void |