kytos / topology

Kytos Main Topology Network Application (NApp)
https://napps.kytos.io/kytos/topology
MIT License
0 stars 19 forks source link

Persistence of switches while Kytos is running #150

Closed italovalcy closed 3 years ago

italovalcy commented 3 years ago

Dear Kytos team,

Kytos topology seems to ignore the persistent data for switches while Kytos is running: if you enable a switch and restart the switch while Kytos remains running, the switch will reconnect but with status disabled.

Steps to reproduce:

  1. Start a mininet topology and Start Kytos
    kytosd
    mn --topo linear,3 --controler=remote
  2. enable all the switches on Kytos and make sure they are enabled:
    for i in 1 2 3; do curl -X POST -H '"Content-Type:' 'application/json"' http://127.0.0.1:8181/api/kytos/topology/v3/switches/00:00:00:00:00:00:00:0$i/enable; done
    curl -s http://127.0.0.1:8181/api/kytos/topology/v3/switches | jq '.switches[].enabled'
  3. Stop mininet and restart Mininet:
    mininet> quit
    mn --topo linear,3 --controler=remote
  4. Check the status of the switches again

Expected result: the links should remain enabled

# curl -s http://127.0.0.1:8181/api/kytos/topology/v3/switches | jq '.switches[].enabled'
true
true
true

Actual result:

# curl -s http://127.0.0.1:8181/api/kytos/topology/v3/switches | jq '.switches[].enabled'
false
false
false

Looks like the same behavior applies to Links and Interfaces.

italovalcy commented 3 years ago

please ignore this issue, it was showing as disabled because of a routine that remove the storehouse files on the mininet startup process.