Added functionality for checking network entry with optional netmask in IP or CIDR format (bnc#800592).