Merge "Use created subnet in port generator in "test_port_ip_update_revises"" into stable/stein

This commit is contained in:
Zuul 2019-09-11 06:58:24 +00:00 committed by Gerrit Code Review
commit 1622a2ace9
1 changed files with 1 additions and 1 deletions

View File

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