Rectifying an incorrect user input in the JSON file
In case of an incorrect user input in the input JSON file at any time during the deployment, you can download the topology data from the database with the same topology name.
-
Download the working configuration file as a JSON.
- Download topology without a path.
nps download-json
+-------------------+----------------------------------------------------------------------------+ | operation | status | +-------------------+----------------------------------------------------------------------------+ | Topology download | blueprintc10 topology data downloaded successfully to /root/topology.json | +-------------------+----------------------------------------------------------------------------+
- Download topology with a path.
nps download-json -f /home/db.json
+-------------------+----------------------------------------------------------------------+ | operation | status | +-------------------+----------------------------------------------------------------------+ | Topology download | blueprintc10 topology data downloaded successfully to /home/db.json | +-------------------+----------------------------------------------------------------------+
- Check the downloaded topology with states.
-
Modify your inputs in the downloaded JSON file and reupload the same using the following command:
nps update-json -f /root/topology.json
Input json updated successfully with topology name: blueprintc10 +------------+-------------------------------------+ | operation | status | +------------+-------------------------------------+ | jsonupdate | updated successfully : blueprintc10 | +------------+-------------------------------------+