Add network id to exception when ipblocks are full

Change-Id: Ic55dfd57e53484cd8f5074cb103e8cfffddf40fc
This commit is contained in:
Mark Washenberger 2012-05-21 14:00:41 -04:00
parent aeb6791ab3
commit 6ec8d7068e

View File

@ -1052,7 +1052,8 @@ class Network(ModelBase):
if not any(ips):
raise exception.NoMoreAddressesError(
_("ip blocks in this network are full"))
_("ip blocks in network %(network-id) are full")
% {'network-id': self.id})
return filter(None, ips)