Merge "Use created subnet in port generator in "test_port_ip_update_revises""

This commit is contained in:
Zuul 2019-05-16 23:08:22 +00:00 committed by Gerrit Code Review
commit 39eb043bf3
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class TestRevisionPlugin(test_plugin.Ml2PluginV2TestCase):
expected_code=exc.HTTPPreconditionFailed.code)
def test_port_ip_update_revises(self):
with self.subnet() as subnet, self.port() as port:
with self.subnet() as subnet, self.port(subnet=subnet) as port:
rev = port['port']['revision_number']
new = {'port': {'fixed_ips': port['port']['fixed_ips']}}
# ensure adding an IP allocation updates the port