Sha256: cc3cbe4ad2b403471ba57e288885a43a1b6b4941483bf2df480825f68afe0266

Contents?: true

Size: 421 Bytes

Versions: 4

Compression:

Stored size: 421 Bytes

Contents

module Vcloud
  module EdgeGateway
    class StaticRoutingConfigurationDiffer < ConfigurationDiffer
      def strip_fields_for_differ_to_ignore(config)
        remote_cfg = Marshal.load(Marshal.dump(config))
        if remote_cfg.key?(:StaticRoute)
          remote_cfg[:StaticRoute].each do |route_rule|
            route_rule.delete(:IsEnabled)
          end
        end
        remote_cfg
      end
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vcloud-edge_gateway-2.1.1 lib/vcloud/edge_gateway/static_routing_configuration_differ.rb
vcloud-edge_gateway-2.1.0 lib/vcloud/edge_gateway/static_routing_configuration_differ.rb
vcloud-edge_gateway-1.5.2 lib/vcloud/edge_gateway/static_routing_configuration_differ.rb
vcloud-edge_gateway-1.5.0 lib/vcloud/edge_gateway/static_routing_configuration_differ.rb