def is_public_subnet(ip):
 return (not is_private_subnet(ip=ip))

def is_public_subnet ( ip ) : return ( not is_private_subnet ( ip = ip ) )
utility function to check if an ip address is inside a public subnet .