Add ip address validation

There are many projects on OpenStack that use
ip validation. It would be nice to have function
for validation in common module.

Change-Id: Ia723490a02b1816fe96c3a02e069d57f4d97d940
Merge "Add ip address validation"