Administrator's Guide
8.2 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:
OpenFlow SwitchesSlave ControllersMaster Controller
NamesIPAddressesNameIP Address
10.250.100.20Controller_215.146.194.103Controller_115.146.194.80
10.250.100.21Controller_315.146.194.38
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”
(page 52).
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).
8.2 Creating a region 89