Merge "Use created subnet in port generator in "test_port_ip_update_revises"" into stable/queens
This commit is contained in:
commit
28f3e371aa
|
@ -144,7 +144,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
|
||||||
|
|
Loading…
Reference in New Issue