Sha256: 700bb401765670330b2f7444b63b00f129ceb57e5ee356c736667e8ad1f03cb6

Contents?: true

Size: 446 Bytes

Versions: 17

Compression:

Stored size: 446 Bytes

Contents

module Vcloud
  module EdgeGateway
    class NatConfigurationDiffer < ConfigurationDiffer

        def strip_fields_for_differ_to_ignore(config)
          deep_cloned_config = Marshal.load( Marshal.dump(config) )
          if deep_cloned_config.key?(:NatRule)
            deep_cloned_config[:NatRule].each do |nat_rule|
              nat_rule.delete(:Id)
            end
          end
          deep_cloned_config
        end

    end
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
vcloud-edge_gateway-2.1.1 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-2.1.0 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-1.5.2 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-1.5.0 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-1.4.1 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-1.4.0 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-1.3.0 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-1.2.0 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-1.1.0 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-1.0.2 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-1.0.1 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-1.0.0 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-0.5.0 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-0.4.0 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-0.3.0 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-0.2.4 lib/vcloud/edge_gateway/nat_configuration_differ.rb
vcloud-edge_gateway-0.2.3 lib/vcloud/edge_gateway/nat_configuration_differ.rb