Skip searching network in project if external or shared 81/60081/3
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 22 Jul 2018 12:01:00 +0000 (14:01 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Tue, 24 Jul 2018 09:20:58 +0000 (11:20 +0200)
commit2ad588de8c658c987869d1e5e7801f5c3623c071
tree7d579fa9dc6ef5532a731835a2a1c45416295a2c
parentd6aeedda1d4d493c2b8cc6f9c56f57f08eb76959
Skip searching network in project if external or shared

It meets the OpenStack rules:
  - any router can be connected to an external network.
  - any VM can be connected to a shared network

It completes https://gerrit.opnfv.org/gerrit/59865 which partially
skip the lookup.

Then CreateRouterSuccessTests passes when the external network is not
owned by the user running snaps_smoke.

JIRA: SNAPS-320

Change-Id: I2c60363002c6b667f90ff3f5f984eace4fa86c99
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 821d86248054017ea8ac40b99759df71fa639e3b)
snaps/config/network.py