diff options
author | Steven Barth <steven@midlink.org> | 2013-12-12 14:43:39 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-12-12 14:43:39 +0100 |
commit | 82ad51f6760b35832492e3975f9f75cef475a516 (patch) | |
tree | 0796a9478d96b6730b95baafba83d7896adcf565 | |
parent | 121d90a6faa4a689a593eadb738e537a5768534d (diff) |
Set dynamic interface flag after adding them so the version is preserved
-rw-r--r-- | ubus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -140,7 +140,6 @@ netifd_add_dynamic(struct ubus_context *ctx, struct ubus_object *obj, if (!iface) return UBUS_STATUS_UNKNOWN_ERROR; - interface_set_dynamic(iface); iface->device_config = true; config = blob_memdup(msg); @@ -148,6 +147,7 @@ netifd_add_dynamic(struct ubus_context *ctx, struct ubus_object *obj, goto error; interface_add(iface, config); + interface_set_dynamic(iface); // need to look up the interface name again, in case of config update, iface = vlist_find(&interfaces, name, iface, node); |