Switch profile customization

The switch profile is a JSON file containing the configuration details of the switch.

IMPORTANT:

You can customize only the profile of the data or leaf, border leaf, and spine switches.

The switch profile consists of the following parameters:

  • switchprofile_name: Indicates the name of the switch profile.

  • details: Indicates the list of the parameters and the corresponding values that are used in the switch profile. When customizing the detail parameters, consider the following rules:

    • All the parameters and corresponding values in the details section of the switch profile must be a string.

    • Each line must be separated with \n.

    • Each parameter value that is derived from the Input JSON file must be preceded by the $ symbol.

Parameters for customizing the Cumulus switch profile

The following list describes the syntax of the parameters for customization:

  • To add the VLAN, gateway, and the netmask information from the Input JSON file, use the following syntax:

    $vlan_<name of network>
    $gateway_<name of network>
    $netmask_<name of network>
  • To add VxLAN id, use $vxlan_<type of network>.

  • To add start IP of VLAN from the DHCP range, use $physicalip_<type of network>.

  • To add switch number, use $switchno.

  • To add loopback address, use $loopback_address.

  • To add anycast IP, use $anycast_ip.

  • To add BGP autonomous system number, use $bgp_number.

  • To add peerlinkip, use $peerlinkip.

  • To add remotepeerlinkip, use $remotepeerlinkip.

  • To add clagd, use $clagd.

  • To add provider VLAN range start, use $vlan_Provider_VLAN.

  • To add provider VLAN range end, use $vlan_ProviderEND.

  • To add the system name from the Input JSON file, use the following syntax:

    $sysname
    Retrieve the system name from the switch section in the Infrastructure topology in your Input JSON file.
  • To add the user name and password from the Input JSON file, use the following syntax:

    $user
    $password
    Retrieve the username and password from the switch section in the Infrastructure topology in your Input JSON file.
  • To add the OOB Management IP address from the Input JSON file, use the following syntax:

    $switchip
    Retrieve the OOB Management IP address from the switch section in the Infrastructure topology in your Input JSON file.

Parameters for customizing the Aruba switch profile

The following list describes the syntax of the parameters for customization:
  • To add the VLAN, gateway, and the netmask information from the Input JSON file, use the following syntax:

    $vlan_<type of network>
    $gateway_<type of network>
    $netmask_<type of network>
  • To add VxLAN id, use $vxlan_<type of network>.

  • To add provider VLAN range start, use $vlan_Provider_VLAN.

  • To add provider VLAN range end, use $vlan_ProviderEND.

  • To add the hostname from the Input JSON file, use the following syntax:

    $<switch_type>_hostname
    Retrieve the hostname from the switch section in the Infrastructure topology in your Input JSON file.
  • To add the password from the Input JSON file, use the following syntax:

    $<switch_type>_password
    Retrieve the password from the switch section in the Infrastructure topology in your Input JSON file.
  • To add the OOB Management IP address from the Input JSON file, use the following syntax:

    $<switch_type>_sw_ip
    Retrieve the OOB Management IP address from the switch section in the Infrastructure topology in your Input JSON file.