EasyManua.ls Logo

HP HPE VAN SDN Controller 2.7 - Defining Inputs for Teaming in a Configuration File

HP HPE VAN SDN Controller 2.7
231 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
are used to configure a single team. The script uses a configuration file to define the inputs
for configuring the team. The script can be used to do the following:
Create a team
Disband a team
Create region(s)
Delete region(s)
Add device to a region
Remove device from a region
Using curl commands for REST APIs to configure a team, see “Team configuration using
curl commands” (page 181).
Defining inputs for teaming in a configuration file
The first step in configuring teaming using a Python script is to define the inputs for teaming in
a configuration file.
The default configuration file is build_team.conf. The file is on the controller system at /opt/
sdn/scripts/teaming/build_team.conf. If you cannot access the /opt/sdn path, you
need to enter sudo su first in order to see this directory path.
You can edit this file to provide the input for team configuration or you can create a custom
configuration file with a different name but the same format and in the same directory.
You can create any number of configuration files.
The following is an example of a build_team.conf file.
# build_team.conf
User=<sdn_controller_username>
Password=<sdn_controller_password>
Sleep_Time=20
Team_IP=##.##.##.###
IP1=##.##.##.###
IP2=##.##.##.###
IP3=##.##.##.###
Controller_IPs=$IP1,$IP2,$IP3
#Controller_IPs=##.##.##.###,##.##.##.###,##.##.##.###
Region1_Name=RED
#Region1_Prioritized_Controller_IPs=##.##.##.###,##.##.##.###,##.##.##.###
Region1_Prioritized_Controller_IPs=$IP1,$IP2,$IP3
Region1_Device_Ranges=##.##.##.##-##,##.##.##.##-##,##.##.##.#-#
Region1_Device_IPs=##.##.##.###
Region2_Name=BLUE
#Region2_Prioritized_Controller_IPs=##.##.##.###,##.##.##.###,##.##.##.###
Region2_Prioritized_Controller_IPs=$IP2,$IP3,$IP1
Region2_Device_Ranges=##.##.##.##-##,##.##.##.##-##,##.##.##.#-#
Region2_Device_IPs=##.##.##.##,##.##.##.###,##.##.##.#
Region3_Name=GREEN
#Region3_Prioritized_Controller_IPs=##.##.##.###,##.##.##.###,##.##.##.###
Region3_Prioritized_Controller_IPs=$IP3,$IP1,$IP2
Region3_Device_Ranges=##.##.##.##-##,##.##.##.##-##,##.##.##.#-#
Region3_Device_IPs=##.##.##.##,##.##.##.##,##.##.##.#
Defining inputs for teaming in a configuration file 107

Table of Contents

Related product manuals