mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-14 20:18:39 +00:00
device: suppress warning for external device if it is down (!IFF_UP)
External devices are not to be touched by NetworkManager. If it is down, that is not something to warn about.
This commit is contained in:
parent
571ce653fd
commit
17e4da8bf3
|
@ -11641,7 +11641,8 @@ activate_stage3_ip_config_start(NMDevice *self)
|
|||
nm_device_state_changed(self, NM_DEVICE_STATE_IP_CONFIG, NM_DEVICE_STATE_REASON_NONE);
|
||||
|
||||
/* Device should be up before we can do anything with it */
|
||||
if ((ifindex = nm_device_get_ip_ifindex(self)) > 0
|
||||
if (!nm_device_sys_iface_state_is_external(self)
|
||||
&& (ifindex = nm_device_get_ip_ifindex(self)) > 0
|
||||
&& !nm_platform_link_is_up(nm_device_get_platform(self), ifindex))
|
||||
_LOGW(LOGD_DEVICE,
|
||||
"interface %s not up for IP configuration",
|
||||
|
|
Loading…
Reference in a new issue