get_device_by_ip gets all devices on the system,
then iterates on them and checks if the given IP
is configured on each device. Ths method does
not account for devices that are deleted after
the devices are listed.
Change-Id: Ibada2b4ed60f02539e00021cdc7b3ddb97f1840c
Closes-Bug: #1567608
(cherry picked from commit a5b1a6ec07a9bf1cdb20fdfd9f23fae86f15ea85)
Reviewed: https:/ /review. openstack. org/320079 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=22893d1c396 c1925e58c57d492 f685d12296ed83
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 22893d1c396c192 5e58c57d492f685 d12296ed83
Author: Assaf Muller <email address hidden>
Date: Thu Apr 7 16:53:38 2016 -0400
Fix Windows IPDevice. device_ has_ip racefulness
get_ device_ by_ip gets all devices on the system,
then iterates on them and checks if the given IP
is configured on each device. Ths method does
not account for devices that are deleted after
the devices are listed.
Change-Id: Ibada2b4ed60f02 539e00021cdc7b3 ddb97f1840c cdb20fdfd9f23fa e86f15ea85)
Closes-Bug: #1567608
(cherry picked from commit a5b1a6ec07a9bf1