Deploying switch configuration

Prerequisites
  • Ensure that you are logged in to the NPS toolkit VM.

  • Ensure that the following environment variables are updated:

    export API_IP=<Customer_IP_assigned _to_NPS_VM>
    export NPSADMIN=<user name of admin mentioned in the nps_secret.yaml file>
    export NPSPASSWD=<password of admin user mentioned in the nps_secret.yaml file>
    export TOPOLOGY_NAME=<the deployment name mentioned in the TICG tool while creating the input.json file>
    export VIM_TYPE=<VIM platform type like RHOSP/RHOCP/VMWARE>
  • Ensure that ODIM RA and CFM are up and running. Use the following commands to verify the ODIM RA and CFM installations:
    nps show --data odim
    nps show --data cfm
  • Ensure that the initial switch configurations are done on all the switches. See Initial configuration for Aruba switches.

  • Ensure that the switches are reachable from the NPS VM.

  • Ensure that all switches are using the same version of the switch software.

  • Ensure that the switch_config docker image is present using the following command:
    docker images | grep -i switch_config
Procedure
  1. Deploy switch configuration using the following command:
    nps deploy -s switch -l debug -nos aruba
  2. Verify the status of switch configuration using the following command:
    nps show --data cfm
    The output of this command shows a state dictionary that has following key value pair:
    "switches_state": "synced"
    nps show --service switch

    The output of this command has the state details for all the switches.

    In case of any failures in either CFM or switch state, analyze the <topology_name>_switch_config_<date>.log file in the /var/nps/logs/<topology_name> directory.