You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by ma...@redhat.com on 2012/02/23 14:28:08 UTC

[PATCH 1/3] Adds is_ipv6? to InstanceAddress model

From: marios <ma...@redhat.com>


Signed-off-by: marios <ma...@redhat.com>
---
 server/lib/deltacloud/models/instance_address.rb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/server/lib/deltacloud/models/instance_address.rb b/server/lib/deltacloud/models/instance_address.rb
index 0c5e0ec..b5c50e3 100644
--- a/server/lib/deltacloud/models/instance_address.rb
+++ b/server/lib/deltacloud/models/instance_address.rb
@@ -45,6 +45,10 @@ class InstanceAddress
     address_type == :ipv4
   end
 
+  def is_ipv6?
+    address_type == :ipv6
+  end
+
   def is_hostname?
     address_type == :hostname
   end
-- 
1.7.6.5


Re: [PATCH 1/3] Adds is_ipv6? to InstanceAddress model

Posted by David Lutterkort <lu...@redhat.com>.
On Thu, 2012-02-23 at 15:28 +0200, marios@redhat.com wrote:
> From: marios <ma...@redhat.com>
> 
> 
> Signed-off-by: marios <ma...@redhat.com>
> ---
>  server/lib/deltacloud/models/instance_address.rb |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)

ACK

David