Rectifying an incorrect user input in the JSON file

Symptom

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.

Action
  1. 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  |
      +-------------------+----------------------------------------------------------------------+
  2. Check the downloaded topology with states.
  3. 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 |
    +------------+-------------------------------------+