When a router gateway is updated and the subnet changes,
we need to use the admin context in order for the operation
to succeed. Since the target network has already been
verified to be external, this is OK. The other operations
in this area such as create and delete already do the
same thing.
Added a fullstack test that moves a gateway between subnets
and verifies it's reachable afterwards.
Reviewed: https:/ /review. opendev. org/670177 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=040b550a861 ce321c87ac33e92 836a502d9531d3
Committed: https:/
Submitter: Zuul
Branch: master
commit 040b550a861ce32 1c87ac33e92836a 502d9531d3
Author: Brian Haley <email address hidden>
Date: Wed Jul 10 16:01:25 2019 -0400
Use admin context when updating router gateway
When a router gateway is updated and the subnet changes,
we need to use the admin context in order for the operation
to succeed. Since the target network has already been
verified to be external, this is OK. The other operations
in this area such as create and delete already do the
same thing.
Added a fullstack test that moves a gateway between subnets
and verifies it's reachable afterwards.
Change-Id: Iead87ba6182d63 3f0f808032166e0 2e767fcffae
Closes-bug: #1812118