Deploying switch configuration

Prerequisites
  • Ensure that the switch is installed and IP address is assigned. For more information, see Installing Cumulus Linux NOS and license on ONIE switches.

  • 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>
Procedure
  1. View the available switch profiles using the following command:
    nps show -p switch_profiles
  2. Deploy switch configuration using the following command:
    nps deploy -s switch -l debug -p <profile name> -t data -nos <nos_type> - ip <comma seperated iLO OOBM IPs obtained during switch NOS installation>
    
    Where,
    • profile_name is 2100_rhocp.

    • nos is the Network Operating System and the <nos_type> is cumulus.

  3. Verify the status of switch configuration using the following command:
    nps show --service switch
  4. Configure the temporary OAM IP interface on both the data switches.

    OAM vlan : 123

    IP interface : 10.xx.xx.xx

    Switch 1
    net add vlan 123 ip address <OAM IP with CIDR>
    net add vlan 123 ip address-virtual 00:00:00:00:00:7a <OAM GW with CIDR>
    net commit
    
    Switch 2
    net add vlan 123 ip address <OAM IP with CIDR>
    net add vlan 123 ip address-virtual 00:00:00:00:00:7a <OAM GW with CIDR>
    net commit
    NOTE:
    • OAM IP with CIDR - Assign a free IP address in OAM range.

    • OAM GW with CIDR - Assign a free IP address in OAM range.

    • Totally there are three OAM IP addresses available in this range as both switches have the same GW but different OAM IP addresses.

  5. If you have to set static IP address for management interface in data switches, perform the following steps for each switch:
    1. Log in to the data switch-1 console and run the following commands:
      net add interface eth0 ip address XX.XX.XX.XX/XX
      net add interface eth0 ip gateway XX.XX.XX.XX
      net add hostname <hostname>
      net commit
    2. Log in to the data switch-2 console and run the following commands:
      net add interface eth0 ip address XX.XX.XX.XX/XX
      net add interface eth0 ip gateway XX.XX.XX.XX
      net add hostname <hostname>
      net commit