Class: Vcloud::EdgeGateway::StaticRoutingConfigurationDiffer
- Inherits:
-
ConfigurationDiffer
- Object
- ConfigurationDiffer
- Vcloud::EdgeGateway::StaticRoutingConfigurationDiffer
- Defined in:
- lib/vcloud/edge_gateway/static_routing_configuration_differ.rb
Instance Method Summary collapse
Methods inherited from ConfigurationDiffer
#diff, #initialize, #stripped_local_config, #stripped_remote_config
Constructor Details
This class inherits a constructor from Vcloud::EdgeGateway::ConfigurationDiffer
Instance Method Details
#strip_fields_for_differ_to_ignore(config) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/vcloud/edge_gateway/static_routing_configuration_differ.rb', line 4 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 |