Class: Ansible::Ruby::Modules::Net_static_route

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/network/routing/net_static_route.rb

Overview

This module provides declarative management of static IP routes on network appliances (routers, switches et. al.).

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

#admin_distanceObject?

Returns Admin distance of the static route.

Returns:

  • (Object, nil)

    Admin distance of the static route.



24
# File 'lib/ansible/ruby/modules/generated/network/routing/net_static_route.rb', line 24

attribute :admin_distance

#aggregateArray<Hash>, ...

Returns List of static route definitions.

Returns:

  • (Array<Hash>, Hash, nil)

    List of static route definitions



27
# File 'lib/ansible/ruby/modules/generated/network/routing/net_static_route.rb', line 27

attribute :aggregate

#maskString

Returns Network prefix mask of the static route.

Returns:

  • (String)

    Network prefix mask of the static route.



16
# File 'lib/ansible/ruby/modules/generated/network/routing/net_static_route.rb', line 16

attribute :mask

#next_hopString

Returns Next hop IP of the static route.

Returns:

  • (String)

    Next hop IP of the static route.



20
# File 'lib/ansible/ruby/modules/generated/network/routing/net_static_route.rb', line 20

attribute :next_hop

#prefixString

Returns Network prefix of the static route.

Returns:

  • (String)

    Network prefix of the static route.



12
# File 'lib/ansible/ruby/modules/generated/network/routing/net_static_route.rb', line 12

attribute :prefix

#purgeBoolean?

Returns Purge static routes not defined in the I(aggregate) parameter.

Returns:

  • (Boolean, nil)

    Purge static routes not defined in the I(aggregate) parameter.



31
# File 'lib/ansible/ruby/modules/generated/network/routing/net_static_route.rb', line 31

attribute :purge

#state:present, ...

Returns State of the static route configuration.

Returns:

  • (:present, :absent, nil)

    State of the static route configuration.



35
# File 'lib/ansible/ruby/modules/generated/network/routing/net_static_route.rb', line 35

attribute :state