Previously api.neutron.Network object was compared by using _apidict
but it did not work when for example the order of subnet list is different.
This commit changes the comparison logic to use network ID explicitly.
In addition, it moves the logic to fetch external networks to api.neutron.
Reviewed: https:/ /review. openstack. org/261191 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=11d973fbe36 369cba4b450536c 6dff57c0cd6d21
Committed: https:/
Submitter: Jenkins
Branch: master
commit 11d973fbe36369c ba4b450536c6dff 57c0cd6d21
Author: Akihiro Motoki <email address hidden>
Date: Thu Dec 24 15:21:33 2015 +0900
Fix network duplication check logic
Previously api.neutron.Network object was compared by using _apidict
but it did not work when for example the order of subnet list is different.
This commit changes the comparison logic to use network ID explicitly.
In addition, it moves the logic to fetch external networks to api.neutron.
Change-Id: Ie3a42e29c32c17 a7f3bf1596b0e09 cb73eae9d2a
Closes-Bug: #1528465