deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH 1/7] Adds is_ipv6? to InstanceAddress model
Date Tue, 28 Feb 2012 16:10:49 GMT
From: marios <marios@redhat.com>


Signed-off-by: marios <marios@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


Mime
View raw message