interface: fix removal of dynamic interfaces
authorHans Dedecker <dedeckeh@gmail.com>
Fri, 16 Nov 2018 15:25:41 +0000 (16:25 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 16 Nov 2018 17:50:14 +0000 (18:50 +0100)
commitd9872db72eb63e9fa454446756e10fc7c52effc5
tree2866bb13d0bddb245b8ce02bd00dc4ed0c6a30dd
parent2f7ef7dc6cb542d5811f64fa7af97fb8619c9429
interface: fix removal of dynamic interfaces

Set config state to remove for dynamic interfaces in the following cases :
-interface is set as not available
-interface is set as down
-interface is set as having no link state
This will trigger an interface delete upon the next call of interface_handle_config_change

Before this change you could end up with lingering inactive dynamic
interfaces in case the aliased interface went down as before a dynamic
interface was only removed when set down via ubus

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
interface.c