
"owningControllerIp":"172.17.6.70",
"dataPaths":[
{
"dpid":"00:1e:00:9c:02:e0:e4:00",
"owningControllerIp":"172.17.6.70"
}
]
}
]
}
]
}
Removing a device from a region using curl
This
DELETE
command removes a device with the specified IP address from the region with the
specified UID and propagates the modifications to each controller in the team. A
deviceIp
query parameter must be specified. You can only remove one IP address at a time in order to
know which device IP address is involved when an error condition is encountered. If the deleted
IP address appears among the
deviceIps
addresses, it will be removed from the list of IPs,
and if the deleted IP address was encompassed by one of the ranges listed among the
deviceIpRanges
, the range will be transformed into one or more ranges and/or individual IP
addresses to reflect the removal of the deleted device IP address and the original range will be
removed. All controllers configured for the team must be available for such a configuration change
to be permitted.
In this example, for region UID
713def9a-4f96-485f-990c-8924bc06c8d8
, device
192.168.1.103
is removed.
Example command
curl --noproxy
teamIp
--header "X-Auth-Token:
token
"
-ksS
--request
DELETE
--url
https://
teamIp
:8443/sdn/v2.0/owners/
region_uid
/devices?deviceIp=192.168.1.103
Example output
{"result":"Device IP address 192.168.1.103 no longer exists in the region with UID
'713def9a-4f96-485f-990c-8924bc06c8d8'"}
To check if your device was removed from the region, check the Team screen in the controller
UI or see
“Getting the configuration of a specific region using curl” (page 194)
Removing a region using curl
This
DELETE
command removes the region with the specified UID and propagates the
modifications to each controller in the team. All controllers configured for the team must be
available for such a configuration change to be permitted.
In this example, region UID
713def9a-4f96-485f-990c-8924bc06c8d8
is deleted. Since
only one region was configured, there are no regions configured for the team at this point.
Therefore, no devices will be allowed to connect to the team until a new region is defined that
encompasses the desired devices.
Example command
curl --noproxy
teamIp
--header "X-Auth-Token:
token
"
-ksS
--request
DELETE
--url
https://
teamIp
:8443/sdn/v2.0/owners/
region_uid
Example output
{"result":"Region with UID 713def9a-4f96-485f-990c-8924bc06c8d8 no longer exists"}
198
curl commands