Merge "TrivialFix: '_lport_index' is used prior to global declaration"

This commit is contained in:
Zuul 2018-02-28 19:55:10 +00:00 committed by Gerrit Code Review
commit a2f50a8e82
1 changed files with 1 additions and 1 deletions

View File

@ -210,8 +210,8 @@ def make_fake_port(id=None,
device_id='fake_device_id',
dhcp_params=None):
if id is None:
id = 'lport_{0}'.format(_lport_index)
global _lport_index
id = 'lport_{0}'.format(_lport_index)
_lport_index += 1
fake_port = l2.LogicalPort(