Create instance ip only if subnet is available.

Change-Id: I2aee296f8e140b3bda2f6bb7600ecd1c4ba7a834
Closes-Bug: 1360876