Removed project query restriction when looking up network for port creation. 89/57489/1
authorspisarski <s.pisarski@cablelabs.com>
Wed, 16 May 2018 15:06:57 +0000 (09:06 -0600)
committerSteven Pisarski <s.pisarski@cablelabs.com>
Wed, 16 May 2018 17:52:25 +0000 (17:52 +0000)
commitd36c4808d746934986300d0b3710693e3c89cd64
tree7db4ea9aec948e1b7b16c1cb27747b11ddb7b5b4
parent81d21bfc84084f7b4a2d6a45a8979ea1f947b103
Removed project query restriction when looking up network for port creation.

When creating a router to an external network, the port configuration object
was performing a lookup using the port's user and project ID; however, as
external networks created in other projects and are visible amongst all
projects can also be added to a port. This patch removes the project restriction
from the network query. I do not believe this fix should ultimately break other
functionality as networks that cannot be looked up by a certain user would
still return None raising a valid exception.

JIRA: APEX-598

Change-Id: I6cd32373fd4f42d8ad9b63a89c2131f95b113ce8
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
snaps/config/network.py