kytos-ng / topology

Kytos Main Topology Network Application (NApp)
https://kytos-ng.github.io/api/topology.html
MIT License
0 stars 8 forks source link

chore: stop storing `active` state on `switches` and `links` collections #140

Closed viniarck closed 1 year ago

viniarck commented 1 year ago

Currently (2022.3), we've been storing active southbound protocol state from Interface, Switch and Links on switches and links collections. However, this isn't actually necessary since the southbound protocol (OpenFlow) always needs to be activated again once controller restarts or switches connect, and we're already paying the price to keep these object structures in memory, which all of them are used in the rest routes, and we won't completely offload these ones in the DB since it'd be a massive refactoring. If we stop storing the active field we can gain/simplify the following:

viniarck commented 1 year ago

Landed on https://github.com/kytos-ng/topology/pull/142