mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 04:40:32 +01:00
ethernet: check kernel interface binding when matching config
When matching an ethernet device with connection settings, check if the connection needs to be bound to a specific virtual kernel interface. Signed-off-by: Thomas Graf <tgraf@redhat.com>
This commit is contained in:
parent
1cd8d52061
commit
3bdd2d7429
1 changed files with 5 additions and 0 deletions
|
|
@ -1535,6 +1535,11 @@ connection_match_config (NMDevice *self, const GSList *connections)
|
|||
wired_matches = NULL;
|
||||
for (iter = connections; iter; iter = iter->next) {
|
||||
NMConnection *candidate = NM_CONNECTION (iter->data);
|
||||
const char *iface;
|
||||
|
||||
iface = nm_connection_get_virtual_iface_name (candidate);
|
||||
if (iface && strcmp (nm_device_get_iface (self), iface))
|
||||
continue;
|
||||
|
||||
s_con = nm_connection_get_setting_connection (candidate);
|
||||
g_assert (s_con);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue