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:
Master Controller |
| Slave Controllers |
| OpenFlow Switches |
|
|
|
|
|
IP Address | Name | IPAddresses | Names |
|
|
|
|
|
|
15.146.194.80 | Controller_1 | 15.146.194.103 | Controller_2 | 10.250.100.20 |
|
| 15.146.194.38 | Controller_3 | 10.250.100.21 |
|
|
|
|
|
|
|
|
|
|
NOTE: In this example, assume the following token has been acquired:
To acquire the authentication token for a controller, see “License registration and activation process” (page 52).
curl
\"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