lifecycle: add create/destroy phases
This commit is contained in:
parent
277ecaf78a
commit
00da19a381
1 changed files with 6 additions and 0 deletions
|
@ -352,6 +352,9 @@ lif_lifecycle_run(const struct lif_execute_opts *opts, struct lif_interface *ifa
|
|||
* but, right now neither debian ifupdown or busybox ifupdown do any recovery,
|
||||
* so we wont right now.
|
||||
*/
|
||||
if (!lif_lifecycle_run_phase(opts, iface, "create", lifname, up))
|
||||
return false;
|
||||
|
||||
if (!lif_lifecycle_run_phase(opts, iface, "pre-up", lifname, up))
|
||||
return false;
|
||||
|
||||
|
@ -376,6 +379,9 @@ lif_lifecycle_run(const struct lif_execute_opts *opts, struct lif_interface *ifa
|
|||
if (!lif_lifecycle_run_phase(opts, iface, "post-down", lifname, up))
|
||||
return false;
|
||||
|
||||
if (!lif_lifecycle_run_phase(opts, iface, "destroy", lifname, up))
|
||||
return false;
|
||||
|
||||
/* when going up, dependents go down last. */
|
||||
if (!handle_dependents(opts, iface, collection, state, up))
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue