Fixes variable name confusion

Change-Id: I20931251a700436b017775df2583be18ba7c6dbf
Closes-Bug: #1591636
This commit is contained in:
Tony Xu 2016-06-12 16:33:48 +08:00
parent 824b4109a2
commit 260ce9c161
1 changed files with 2 additions and 2 deletions

View File

@ -322,8 +322,8 @@ class DhcpAgent(manager.Manager):
return
# NOTE(kevinbenton): we don't exclude dhcp disabled subnets because
# they still change the indexes used for tags
old_cidrs = [s.cidr for s in network.subnets]
new_cidrs = [s.cidr for s in old_network.subnets]
old_cidrs = [s.cidr for s in old_network.subnets]
new_cidrs = [s.cidr for s in network.subnets]
if old_cidrs == new_cidrs:
self.call_driver('reload_allocations', network)
self.cache.put(network)