community / community.network / 5.0.2 / module / icx_static_route Manage static IP routes on Ruckus ICX 7000 series switches Authors: Ruckus Wireless (@Commscope)community.network.icx_static_route (5.0.2) — module
Install with ansible-galaxy collection install community.network:==5.0.2
collections: - name: community.network version: 5.0.2
This module provides declarative management of static IP routes on Ruckus ICX network devices.
- name: Configure static route community.network.icx_static_route: prefix: 192.168.2.0/24 next_hop: 10.0.0.1
- name: Remove configuration community.network.icx_static_route: prefix: 192.168.2.0 mask: 255.255.255.0 next_hop: 10.0.0.1 state: absent
- name: Add static route aggregates community.network.icx_static_route: aggregate: - { prefix: 172.16.32.0, mask: 255.255.255.0, next_hop: 10.0.0.8 } - { prefix: 172.16.33.0, mask: 255.255.255.0, next_hop: 10.0.0.8 }
- name: Remove static route aggregates community.network.icx_static_route: aggregate: - { prefix: 172.16.32.0, mask: 255.255.255.0, next_hop: 10.0.0.8 } - { prefix: 172.16.33.0, mask: 255.255.255.0, next_hop: 10.0.0.8 } state: absent
mask: description: - Network prefix mask of the static route. type: str 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: - Network prefix of the static route. type: str next_hop: description: - Next hop IP of the static route. type: str aggregate: description: List of static route definitions. elements: dict suboptions: admin_distance: description: - Admin distance of the static route. Range is 1 to 255. type: int check_running_config: description: - Check running configuration. This can be set as environment variable. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter. type: bool mask: description: - Network prefix mask of the static route. type: str next_hop: description: - Next hop IP of the static route. type: str prefix: description: - Network prefix of the static route. type: str state: choices: - present - absent description: - State of the static route configuration. type: str type: list admin_distance: description: - Admin distance of the static route. Range is 1 to 255. type: int check_running_config: default: true description: - Check running configuration. This can be set as environment variable. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter. type: bool
commands: description: The list of configuration mode commands to send to the device returned: always sample: - ip route 192.168.2.0 255.255.255.0 10.0.0.1 type: list