networkd: Do not send requests to create netdevs if they exists. (#6973)

If the netdev already exists we should not send requests to
kernel to create them.

fixes #5448
This commit is contained in:
Susant Sahani 2017-11-20 23:28:06 +05:30 committed by Lennart Poettering
parent 8a9b3a23fd
commit a63e5daaa3
1 changed files with 5 additions and 0 deletions

View File

@ -2289,6 +2289,11 @@ static int link_enter_join_netdev(Link *link) {
HASHMAP_FOREACH(netdev, link->network->stacked_netdevs, i) {
if (netdev->ifindex > 0) {
link_joined(link);
continue;
}
log_struct(LOG_DEBUG,
LOG_LINK_INTERFACE(link),
LOG_NETDEV_INTERFACE(netdev),