]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/libraries/ipaddresses.rb
podman: revert to using default slirp4netns mtu
[chef.git] / cookbooks / networking / libraries / ipaddresses.rb
index 8efba26de195624e0196e5d61ae9a193ea8f4330..5f746c9aa1e4bd754c684a95037ae3b88930ddf8 100644 (file)
@@ -17,10 +17,18 @@ module OpenStreetMap
           @netmask = ip.netmask
         end
 
+        def <=>(other)
+          address <=> other.address
+        end
+
         def to_s
           address
         end
 
+        def to_str
+          address
+        end
+
         def subnet
           "#{@network}/#{@prefix}"
         end