kytos-ng / maintenance

Kytos Maintenance Window NApp
https://kytos-ng.github.io/api/maintenance.html
0 stars 8 forks source link

Items under maintenance should persist disabled if Kytos restart #28

Closed italovalcy closed 1 year ago

italovalcy commented 2 years ago

If kytos gets restarted the items under maintenance should remain disable and should be enabled after the maintenance window finishes. The way we are handling some items for now can lead to some of them gets theirs normal state if kytos gets restarted during a MW.

italovalcy commented 2 years ago

One example is show in https://github.com/kytos-ng/topology/pull/13

viniarck commented 1 year ago

@Ktmi, this one has been completely covered, hasn't it? If positive, you can close this issue too

Ktmi commented 1 year ago

Yeah, I think this has been covered. During startup, maintenance will fast forward maintenance windows to the appropriate state and activate any maintenance windows that should be in the running state. With the status_funcs this means that the items should still be in maintenance if their window was active and should still be active.