Fixed recognizing of  IP address of the subnet

Change-Id: If8ab73df9f644e0fed4e19d44c643ead526c1612
Merge "Fixed recognizing of  IP address of the subnet"