summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-link-bus.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-01-28 16:10:28 +0100
committerGitHub <noreply@github.com>2020-01-28 16:10:28 +0100
commitebe2ab60cc81852bcc005419ed21c55cbdb970aa (patch)
tree4d14169f2546af47c18b7e14c6fdc9351a228f54 /src/network/networkd-link-bus.c
parentMerge pull request #14633 from poettering/logind-switch-polkit (diff)
parentnetwork: do nothing if link is in pending or linger state on reconfiguring (diff)
downloadsystemd-ebe2ab60cc81852bcc005419ed21c55cbdb970aa.tar.xz
systemd-ebe2ab60cc81852bcc005419ed21c55cbdb970aa.zip
Merge pull request #14611 from yuwata/network-fix-reconfigure
network: fix reconfigure
Diffstat (limited to 'src/network/networkd-link-bus.c')
-rw-r--r--src/network/networkd-link-bus.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/networkd-link-bus.c b/src/network/networkd-link-bus.c
index 5658fea140..efb72b60e7 100644
--- a/src/network/networkd-link-bus.c
+++ b/src/network/networkd-link-bus.c
@@ -621,6 +621,12 @@ int bus_link_method_reconfigure(sd_bus_message *message, void *userdata, sd_bus_
if (r < 0)
return r;
+ link_set_state(l, LINK_STATE_INITIALIZED);
+ r = link_save(l);
+ if (r < 0)
+ return r;
+ link_clean(l);
+
return sd_bus_reply_method_return(message, NULL);
}