due to vague regex definition there was no way to distinguish
if shorter ip address was ipv6 or ipv4 resulting in exception
added tests
Change-Id: Id81e26f018e718675fd58469204c7ad1b647a7b1 Signed-off-by: Filip Gregor <fgregor@cisco.com>
(cherry picked from commit 25b6f8582bce7502cbfe70bbe04860d5d75ff8f8)