incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1199712 - /incubator/deltacloud/trunk/server/lib/deltacloud/models/instance_address.rb
Date Wed, 09 Nov 2011 12:36:23 GMT
Author: mfojtik
Date: Wed Nov  9 12:36:22 2011
New Revision: 1199712

URL: http://svn.apache.org/viewvc?rev=1199712&view=rev
Log:
Core: Default address type is now ipv4 instead of ipv6

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/models/instance_address.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/instance_address.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/instance_address.rb?rev=1199712&r1=1199711&r2=1199712&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/instance_address.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/instance_address.rb Wed Nov  9
12:36:22 2011
@@ -24,7 +24,7 @@ class InstanceAddress
   def initialize(address, opts={})
     self.address = address
     self.port = opts[:port] if opts[:port]
-    self.address_type = opts[:type] || :ipv6
+    self.address_type = opts[:type] || :ipv4
     self
   end
 
@@ -41,8 +41,8 @@ class InstanceAddress
     address_type == :mac
   end
 
-  def is_ipv6?
-    address_type == :ipv6
+  def is_ipv4?
+    address_type == :ipv4
   end
 
   def is_hostname?



Mime
View raw message