sushma_alethea.test.icx_static_route6 (1.0.0) — module

Manage static IPV6 routes on Ruckus ICX 7000 series switches

| "added in version" 1.3.0 of sushma_alethea.test"

Authors: Ruckus Wireless (@Commscope)

Install collection

Install with ansible-galaxy collection install sushma_alethea.test:==1.0.0


Add to requirements.yml

  collections:
    - name: sushma_alethea.test
      version: 1.0.0

Description

This module provides declarative management of static IP routes on Ruckus ICX network devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: configure static route
  community.network.icx_static_route6:
    prefix: 6666:1:1::/64
    next_hop: 6666:1:2::0
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: remove configuration
  community.network.icx_static_route6:
    prefix: 6666:1:1::/64
    next_hop: 6666:1:2::0
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add static route aggregates
  community.network.icx_static_route6:
    aggregate:
      - { prefix: '6666:1:8::/64', next_hop: '6666:1:9::0' }
      - { prefix: '6666:1:5::/64', next_hop: '6666:1:6::0' }
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: remove static route aggregates
  community.network.icx_static_route6:
    aggregate:
      - { prefix: '6666:1:8::/64', next_hop: '6666:1:9::0' }
      - { prefix: '6666:1:5::/64', next_hop: '6666:1:6::0' }
    state: absent

Inputs

    
purge:
    default: false
    description:
    - Purge routes not defined in the I(aggregate) parameter.
    type: bool

state:
    choices:
    - present
    - absent
    default: present
    description:
    - State of the static route configuration.
    type: str

prefix:
    description:
    - Destination IPv6 address, including prefix length.
    type: str

next_hop:
    description:
    - IPv6 address of a next-hop gateway. The next-hop address may be a global IPv6 address
      or a link-local IPv6 address.
    type: str

aggregate:
    description: List of static route definitions.
    elements: dict
    suboptions:
      admin_distance:
        description:
        - Specifies the route's administrative distance. The default value is 1.
        type: int
      check_running_config:
        description:
        - Check running configuration. This can be set as environment variable. Module
          will use environment variable value(default:False), unless it is overridden,
          by specifying it as module parameter.
        type: bool
      next_hop:
        description:
        - IPv6 address of a next-hop gateway. The next-hop address may be a global IPv6
          address or a link-local IPv6 address.
        type: str
      prefix:
        description:
        - Destination IPv6 address, including prefix length.
        required: true
        type: str
      state:
        choices:
        - present
        - absent
        description:
        - State of the static route configuration.
        type: str
    type: list

admin_distance:
    description:
    - Specifies the route's administrative distance. The default value is 1.
    type: int

check_running_config:
    default: false
    description:
    - Check running configuration. This can be set as environment variable. Module will
      use environment variable value(default:False), unless it is overridden, by specifying
      it as module parameter.
    type: bool

Outputs

commands:
  description: The list of configuration mode commands to send to the device
  returned: always
  sample:
  - ip route 6666:1:1::/64 6666:1:2::0
  type: list