deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [5/7] git commit: Adds is_ipv6? to InstanceAddress model
Date Wed, 29 Feb 2012 10:52:35 GMT
Adds is_ipv6? to InstanceAddress model


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/364914e4
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/364914e4
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/364914e4

Branch: refs/heads/master
Commit: 364914e4452fe2068c770fec104f579c31887003
Parents: a75ac34
Author: marios <marios@redhat.com>
Authored: Thu Feb 23 15:10:51 2012 +0200
Committer: marios <marios@redhat.com>
Committed: Wed Feb 29 12:51:42 2012 +0200

----------------------------------------------------------------------
 server/lib/deltacloud/models/instance_address.rb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/364914e4/server/lib/deltacloud/models/instance_address.rb
----------------------------------------------------------------------
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


Mime
View raw message