def ip_in_subnet(ip_addr, cidr):
 return salt.utils.network.in_subnet(cidr, ip_addr)

def ip_in_subnet ( ip_addr , cidr ) : return salt . utils . network . in_subnet ( cidr , ip_addr )
returns true if given ip is within specified subnet .