switchdb module

switchdb._switchdb()

Updates the full path name of the DB in configuration and scripts files.

As an example it can be used to have multiple database files on the same netor home directory, in order to support different group of devices, like different customers, environments, group of devices, or even for copying DB files to different folders or machines for sharing them.

Returns:nothing
switchdb._update_config(full_db_path_name)

Updates the configuration files.

To complete the process you need to push the DB with netor-db-push.

Parameters:full_db_path_name – full path name of the DB to use
Returns:nothing