Rebuilding the Topology Cache

Last modified by Kevin Austin on 2018/10/23 03:50

Neo4j contains the historical data for switches and the network topology. There may be instances where switches are removed from the network and you want to rebuild the topology. There are manual ways to remove these switches, but for a test environment, it may be easier to just delete this historical data and rebuild the topology. 

You can list the volumes where data is held using the following command:

user@host:~/open-kilda$ docker volume list

The data for the topology is stored in the open-kilda_app_server_data volume.

If you want to rebuild the topology of the network, stop OpenKilda and from the OpenKilda directory enter the following command:

user@host:~/open-kilda$ docker volume list -q | grep Kilda | xargs -r docker volume rm

Start OpenKilda again using docker-compose:

user@host:~/open-kilda$ docker-compose up

The historical data for the switches will be removed and the network topology will be rebuilt.

Tags:
Created by Kevin Austin on 2018/10/23 03:50
©2018 OpenKilda