if block.nil?
addresses << interface[:address]
else
- block.call(interface[:address])
+ yield interface[:address]
end
end
end
def internal_ipaddress
- return ipaddresses(:role => :internal).first
+ ipaddresses(:role => :internal).first
end
def external_ipaddress
- return ipaddresses(:role => :external).first
+ ipaddresses(:role => :external).first
end
end
end