atlanticwave-sdx / sdx-controller

Central Controller for AtlanticWave SDX.
https://www.atlanticwave-sdx.net
MIT License
1 stars 3 forks source link

link failure handling, part 1 #195

Closed congwang09 closed 1 year ago

congwang09 commented 1 year ago

Relates to https://github.com/atlanticwave-sdx/sdx-controller/issues/161 This adds the first few items to handle link failure. The SDX controller maintains a link-connection dict in the database. When a connection is placed, the link and corresponding connection request is added to the dict. The link is formatted as a serialized list of ports (sorted by name).

When failure request comes from the LC, SDX controller first looks at the dict, if a key (link) is found, SDX will first call pce to remove the connection, then do path computation, and place the connection again.