Correct CIDR values in case of invalid is given

Change-Id: I4f2a18acb2f5a0c17e7154368b767c70fd166e8c
Fixes: rhbz#969977
Merge "Correct CIDR values in case of invalid is given"