kytos-ng / mef_eline

Kytos NApp to create and manage point-to-point L2 circuits
https://kytos-ng.github.io/api/mef_eline.html
MIT License
0 stars 9 forks source link

Event handle_link_up should trigger the setup of an failover path #251

Open italovalcy opened 1 year ago

italovalcy commented 1 year ago

Hi,

Depending on the topology and the link down/up events, it may happen that no failover path is found (there is no path minimally disjoint from the current path):

Jan 30 17:15:58 2ff3d06b16b7 kytos.napps.kytos/mef_eline:WARNING evc:788:  Failover path for EVC(c9ea3a86c99b4e, my evc1) was not deployed: No available path was found

However, the topology may change later, and a new link becomes UP, making it possible to find a failover path. Mef_eline should take that opportunity to set up the "pending" failover path (i.e., the EVC is eligible to have a failover path, but it hasn't yet because no minimally disjoint path was previously found).

It would be interesting to also take a link_up event as an opportunity to optimize the failover path, setting up a new one that has better disjointness than the current one (or maybe leveraging another Napp to do this kind of optimization).

viniarck commented 1 year ago

Italo, excellent idea, I've marked this as enhancement and priority_medium (feel free to adapt the priority accordingly if you wish), depending how things are going on 2023.1 we can include later on in this scope.