mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
add a method to IPAddr instead of breaking a useful one
This commit is contained in:
parent
9e3716026c
commit
7a2719fbf9
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'ecloud'))
|
||||||
require 'ipaddr'
|
require 'ipaddr'
|
||||||
|
|
||||||
class IPAddr
|
class IPAddr
|
||||||
def mask
|
def mask_string
|
||||||
_to_string(@mask_addr)
|
_to_string(@mask_addr)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -367,7 +367,7 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
def netmask
|
def netmask
|
||||||
self[:netmask] || subnet_ipaddr.mask
|
self[:netmask] || subnet_ipaddr.mask_string
|
||||||
end
|
end
|
||||||
|
|
||||||
def dns
|
def dns
|
||||||
|
|
Loading…
Reference in a new issue