validation for adding subnet

Change-Id: I4a2198600189a00f494e5f0b6e1c00facd2c8b63