Return-Path: X-Original-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 43C439648 for ; Wed, 2 Nov 2011 14:05:07 +0000 (UTC) Received: (qmail 22121 invoked by uid 500); 2 Nov 2011 14:05:06 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 22094 invoked by uid 500); 2 Nov 2011 14:05:06 -0000 Mailing-List: contact deltacloud-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltacloud-dev@incubator.apache.org Delivered-To: mailing list deltacloud-dev@incubator.apache.org Received: (qmail 22007 invoked by uid 99); 2 Nov 2011 14:05:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 14:05:05 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mfojtik@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 14:04:59 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pA2E4clO009286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 2 Nov 2011 10:04:38 -0400 Received: from dhcp-29-121.brq.redhat.com (dhcp-29-121.brq.redhat.com [10.34.29.121]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pA2E4abm022488 for ; Wed, 2 Nov 2011 10:04:37 -0400 From: mfojtik@redhat.com To: deltacloud-dev@incubator.apache.org Subject: Unified way how we deal with IP addresses Date: Wed, 2 Nov 2011 15:05:28 +0100 Message-Id: <1320242732-81971-1-git-send-email-mfojtik@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Hi, This patchset introduce a new model 'InstanceAddress' for storing and manipulating with all different address types we need to deal across cloud providers. Previously we have some sort of 'address' type guessing which fails in most cases and caused a lot of confusion with VNC ports and so. Currently we have five types of addresses in instance: 1) :ipv6 - Indicate that address is given in IPv6 format (127.0.0.1) 2) :mac - Address contain a MAC address of the instance NIC adapter 3) :hostname - Address is reported in 'hostname' format (inst0.example.com) 4) :vnc - Address points to VNC server. Optionally a port attribute is specified 5) :unavailable - Address is currently unavailable (case when instance is booting / or no address is available 'yet') Client code should be already compatible with this XML format:
10.0.0.1
1.1.1.1
-- Michal