Class: Ansible::Ruby::Modules::Win_route

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/windows/win_route.rb

Overview

Add or remove a static route.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#destinationString

Returns Destination IP address in CIDR format (ip address/prefix length).

Returns:

  • (String)

    Destination IP address in CIDR format (ip address/prefix length)



12
# File 'lib/ansible/ruby/modules/generated/windows/win_route.rb', line 12

attribute :destination

#gatewayString?

Returns The gateway used by the static route.,If C(gateway) is not provided it will be set to C(0.0.0.0).

Returns:

  • (String, nil)

    The gateway used by the static route.,If C(gateway) is not provided it will be set to C(0.0.0.0).



16
# File 'lib/ansible/ruby/modules/generated/windows/win_route.rb', line 16

attribute :gateway

#metricInteger?

Returns Metric used by the static route.

Returns:

  • (Integer, nil)

    Metric used by the static route.



20
# File 'lib/ansible/ruby/modules/generated/windows/win_route.rb', line 20

attribute :metric

#state:absent, ...

Returns If C(absent), it removes a network static route.,If C(present), it adds a network static route.

Returns:

  • (:absent, :present, nil)

    If C(absent), it removes a network static route.,If C(present), it adds a network static route.



24
# File 'lib/ansible/ruby/modules/generated/windows/win_route.rb', line 24

attribute :state