kytos-ng / kytos

Kytos SDN Platform. Kytos is designed to be easy to install, use, develop and share Network Apps (NApps).
https://kytos-ng.github.io/
MIT License
3 stars 8 forks source link

List of links (topology) should be in core and not in topology #92

Open ajoaoff opened 3 years ago

ajoaoff commented 3 years ago

Original issue opened by @ajoaoff at https://github.com/kytos/kytos/issues/1064.

The list of links must be accessible by all applications, like the list of switches and interfaces. Although the topology is discovered by the kytos/topology NApp, the results should be stored in the core. The NApp kytos/of_core deals with switch connections, but the data is stored in the core.

viniarck commented 6 months ago

Related issues:

https://github.com/kytos-ng/maintenance/issues/90

https://github.com/kytos-ng/mef_eline/issues/464

viniarck commented 6 months ago

Quick summary of major points to be moved and refactored on both kytos and topology:

All topology DB writes will still be managed by topology, only the Link instances refs should be moved to core just so certain memory reads becomes easier and avoid IO in many cases that it used to have in certain request calls.

topology endpoints will still stay the same, no compatibility broken except self.links which shouldn't accessed by other NApps, although maintenance is doing it https://github.com/kytos-ng/maintenance/issues/90, so that needs to be refactored too.