def cidr_netmask(cidr):
 ips = netaddr.IPNetwork(cidr)
 return str(ips.netmask)

def cidr_netmask ( cidr ) : ips = netaddr . IPNetwork ( cidr ) return str ( ips . netmask )
get the netmask address associated with a cidr address .