Deploying switch configuration

Prerequisites

Ensure that you are logged into the NPS toolkit VM.

Procedure
  1. To view the available switch profiles, run the following command:
    nps show -p switch_profiles
    Following are the available switch profiles for VMware based on the validated hardware combinations:

    Validated hardware combinations

    Data switch type

    Corresponding switch profile

    HPE ProLiant DL

    Mellanox

    2100_core_vmware

  2. To deploy switch configuration, run the following command:
    nps deploy -s switch -l debug -p <profile name> -t <type of switch> -nos <nos_type> -ip <comma seperated switch iLO_OOBM IPs>

    Where,

    <profile name> - switch profile you have selected.

    <type of switch> - data

    <nos_type> - cumulus

    NOTE:
    By default, the information-level logs are displayed during execution of the NPS toolkit deploy command. To view the debug-level logs, provide the -l debug argument in the NPS toolkit command. For example:
    nps deploy --service switch -p <Name of switch profile> -t <Type of switch> -ip <comma seperated switch iLO_OOBM IPs> -l debug
  3. To verify the status of switch configuration, run the following command:
    nps show --service switch
    
    NOTE:

    If the status is displayed as "Failed", see Switch automation status shows Failed.

  4. If you have selected to deploy Comware data switch, manually configure an uplink to the Customer infrastructure switch.
    The following code snippet shows an example uplink configuration to the customer infrastructure switch:
    <5950-2>sys
    [5950-2]int b 50
    [5950-2-Bridge-Aggregation50]dis this
    #
    interface Bridge-Aggregation50
    	description Uplink-to-Customer-Network
    	port link-type trunk
    	undo port trunk permit vlan 1
    	port trunk permit vlan <OAM_VLAN> <CAN_VLAN> <provider VLAN> <transport VLAN>
    	port trunk pvid vlan <pvid of customer VLAN>
    	link-aggregation mode dynamic
    	undo mac-address static source-check enable
    #
    return
    [5950-2-Bridge-Aggregation50]
  5. If you must set static IP 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 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 commit