From: marios <[email protected]>
Signed-off-by: marios <[email protected]> --- server/lib/deltacloud/models/instance_address.rb | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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 -- 1.7.6.5
