Creating a region

A region should have a minimum of two controllers. This example illustrates the cURL command to use for creating a new region definition with the following controllers and devices:

Master ControllerSlave Controllers OpenFlow Switches
IP Address NameIP AddressesNames

15.146.194.80

Controller_1

15.146.194.103

15.146.194.38

Controller_2

Controller_3

10.250.100.20

10.250.100.21


NOTE: In this example, assume the following token has been acquired:

"X-Auth-Token:54a6f80a9ae243db89bfa05de4ced51d"

To acquire the authentication token for a controller, see “License registration and activation process”.

curl --noproxy 15.146.194.80 
--header "X-Auth-Token:54a6f80a9ae243db89bfa05de4ced51d" 
--header "Content-Type:application/json" --fail -ksS 
--request POST --url "https://15.146.194.80:8443/sdn/v2.0/regions/ 
--data-binary "{
\"region\": {
\"master\": {
\"ip\": \"15.146.194.80\",
\"name\": \"Controller_1\"
},
\"slaves\": [
{
\"ip\": \"15.146.194.103\",
\"name\": \"Controller_2\"
},
{
\"ip\": \"15.146.194.38\",
\"name\": \"Controller_3\"
}
],
\"devices\": 
[
{
\"ip\": \"10.250.100.20\"
},
{
\"ip\": \"10.250.100.21\"
}
]
}
}"


NOTE: A region can have only one master and one or more slave controller(s).