mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 11:19:16 +02: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
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 */
|
/* 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))
|
&& !nm_platform_link_is_up(nm_device_get_platform(self), ifindex))
|
||||||
_LOGW(LOGD_DEVICE,
|
_LOGW(LOGD_DEVICE,
|
||||||
"interface %s not up for IP configuration",
|
"interface %s not up for IP configuration",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue