You can use `libcloud.compute.base.is_private_subnet` method to determine if an IP address is private.