Add function cidr_to_netmask to utils

cidr_to_netmask util function to returns netmask
from cidr subnet notation.

Change-Id: Id76d0aa698bbd844376075dfc2ff0d9add67cf83
Closes-Bug: #1273663