fortios_router_static
Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS
Collection: fortinet.fortios
Full Name: fortinet.fortios.fortios_router_static
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_token | str | |||
| enable_log | bool | false | ||
| member_path | str | |||
| member_state | str | |||
| router_static | dict | |||
| state | str | yes | ||
| vdom | str | root |
Example
yaml
# Define these inventory variables: fortios_access_token.
- fortinet.fortios.fortios_router_static:
access_token: '{{ fortios_access_token }}'
router_static:
bfd: enable
blackhole: enable
comment: Optional comments.
distance: "10"
dynamic_gateway: enable
internet_service: "0"
link_monitor_exempt: enable
priority: "1"
sdwan: enable
sdwan_zone:
- name: default_name_20 (source system.sdwan.zone.name)
seq_num: 1
status: enable
tag: "0"
virtual_wan_link: enable
vrf: 0
weight: "0"
state: present
vdom: root
name: Configure IPv4 static routing tables.