IP allocation starts from reverse

After api server is restarted, the IP allocated
to a port starts from the reverse direction.

Change-Id: Ic16894e89aafb0d4fced2e03201e3875d7f1510a
Closes-bug: #1336722
Merge "IP allocation starts from reverse"