@staticmethod
def has_public_ip(addresses):
    """Return True is addresses contains an IP starting iwth 10.x."""
    return 'provider1' in addresses and addresses['provider1'][0]['addr'
        ].startswith('10.')
