Fix the cidr issue

This pull request fixes if the cidr is passed for example as "10.0.00.00/24" during subnet creation