Fixed rahul's review comment 'Please add IP validation in case of Save being clicked' in the commit https://review.opencontrail.org/#/c/2319/

Change-Id: Idefde7efc3f99ead6e7f100645cd45a6bd1a0d2f
Merge "Fixed rahul's review comment 'Please add IP validation in case of Save being clicked' in the commit https://review.opencontrail.org/#/c/2319/" into R1.10