• Blog
  • Ansible community forum
  • Documentation
Ansible Logo
Ansible Community Documentation
Ansible

Ansible getting started

  • Getting started with Ansible
  • Getting started with Execution Environments

Installation, Upgrade & Configuration

  • Installation Guide
  • Ansible Porting Guides

Using Ansible

  • Building Ansible inventories
  • Using Ansible command line tools
  • Using Ansible playbooks
  • Protecting sensitive data with Ansible vault
  • Using Ansible modules and plugins
  • Using Ansible collections
  • Using Ansible on Windows and BSD
  • Ansible tips and tricks

Contributing to Ansible

  • Ansible Community Guide
  • Ansible Collections Contributor Guide
  • ansible-core Contributors Guide
  • Advanced Contributor Guide
  • Ansible documentation style guide

Extending Ansible

  • Developer Guide

Common Ansible Scenarios

  • Legacy Public Cloud Guides
  • Network Technology Guides
  • Virtualization and Containerization Guides

Network Automation

  • Network Getting Started
  • Network Advanced Topics
  • Network Developer Guide

Ansible Galaxy

  • Galaxy User Guide
  • Galaxy Developer Guide

Reference & Appendices

  • Collection Index
    • Collections in the Amazon Namespace
    • Collections in the Ansible Namespace
    • Collections in the Arista Namespace
    • Collections in the Awx Namespace
    • Collections in the Azure Namespace
    • Collections in the Check_point Namespace
    • Collections in the Chocolatey Namespace
    • Collections in the Cisco Namespace
    • Collections in the Cloud Namespace
    • Collections in the Cloudscale_ch Namespace
    • Collections in the Community Namespace
    • Collections in the Containers Namespace
    • Collections in the Cyberark Namespace
    • Collections in the Dellemc Namespace
    • Collections in the F5networks Namespace
    • Collections in the Fortinet Namespace
      • Fortinet.Fortimanager
      • Fortinet.Fortios
        • Description
        • Plugin Index
    • Collections in the Frr Namespace
    • Collections in the Gluster Namespace
    • Collections in the Google Namespace
    • Collections in the Grafana Namespace
    • Collections in the Hetzner Namespace
    • Collections in the Hpe Namespace
    • Collections in the Ibm Namespace
    • Collections in the Ieisystem Namespace
    • Collections in the Infinidat Namespace
    • Collections in the Infoblox Namespace
    • Collections in the Inspur Namespace
    • Collections in the Junipernetworks Namespace
    • Collections in the Kaytus Namespace
    • Collections in the Kubernetes Namespace
    • Collections in the Lowlydba Namespace
    • Collections in the Mellanox Namespace
    • Collections in the Microsoft Namespace
    • Collections in the Netapp Namespace
    • Collections in the Netapp_eseries Namespace
    • Collections in the Netbox Namespace
    • Collections in the Ngine_io Namespace
    • Collections in the Openstack Namespace
    • Collections in the Openvswitch Namespace
    • Collections in the Ovirt Namespace
    • Collections in the Purestorage Namespace
    • Collections in the Sensu Namespace
    • Collections in the Servicenow Namespace
    • Collections in the Splunk Namespace
    • Collections in the T_systems_mms Namespace
    • Collections in the Telekom_mms Namespace
    • Collections in the Theforeman Namespace
    • Collections in the Vmware Namespace
    • Collections in the Vultr Namespace
    • Collections in the Vyos Namespace
    • Collections in the Wti Namespace
  • Indexes of all modules and plugins
  • Playbook Keywords
  • Return Values
  • Ansible Configuration Settings
  • Controlling how Ansible behaves: precedence rules
  • YAML Syntax
  • Python 3 Support
  • Interpreter Discovery
  • Releases and maintenance
  • Testing Strategies
  • Sanity Tests
  • Frequently Asked Questions
  • Glossary
  • Ansible Reference: Module Utilities
  • Special Variables
  • Red Hat Ansible Automation Platform
  • Ansible Automation Hub
  • Logging Ansible output

Roadmaps

  • Ansible Roadmap
  • ansible-core Roadmaps




Ansible
  • Collection Index
  • Collections in the Fortinet Namespace
  • Fortinet.Fortios
  • fortinet.fortios.fortios_system_sdwan module – Configure redundant Internet connections with multiple outbound links and health-check profiles in Fortinet’s FortiOS and FortiGate.


You are reading an older version of the Ansible documentation. Use the version selection to the left if you want the latest (stable) released version.

fortinet.fortios.fortios_system_sdwan module – Configure redundant Internet connections with multiple outbound links and health-check profiles in Fortinet’s FortiOS and FortiGate.

Note

This module is part of the fortinet.fortios collection (version 2.3.8).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install fortinet.fortios. You need further requirements to be able to use this module, see Requirements for details.

To use it in a playbook, specify: fortinet.fortios.fortios_system_sdwan.

New in fortinet.fortios 2.0.0

  • Synopsis

  • Requirements

  • Parameters

  • Notes

  • Examples

  • Return Values

Synopsis

  • This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify system feature and sdwan category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0

Requirements

The below requirements are needed on the host that executes this module.

  • ansible>=2.15

Parameters

Parameter

Comments

access_token

string

Token-based authentication. Generated from GUI of Fortigate.

enable_log

boolean

Enable/Disable logging for task.

Choices:

  • false ← (default)

  • true

member_path

string

Member attribute path to operate on.

Delimited by a slash character if there are more than one attribute.

Parameter marked with member_path is legitimate for doing member operation.

member_state

string

Add or delete a member under specified attribute path.

When member_state is specified, the state option is ignored.

Choices:

  • "present"

  • "absent"

system_sdwan

dictionary

Configure redundant Internet connections with multiple outbound links and health-check profiles.

app_perf_log_period

integer

Time interval in seconds that application performance logs are generated (0 - 3600).

duplication

list / elements=dictionary

Create SD-WAN duplication rule.

dstaddr

list / elements=dictionary

Destination address or address group names.

name

string / required

Address or address group name. Source firewall.address.name firewall.addrgrp.name.

dstaddr6

list / elements=dictionary

Destination address6 or address6 group names.

name

string / required

Address6 or address6 group name. Source firewall.address6.name firewall.addrgrp6.name.

dstintf

list / elements=dictionary

Outgoing (egress) interfaces or zones.

name

string / required

Interface, zone or SDWAN zone name. Source system.interface.name system.zone.name system.sdwan.zone.name.

id

integer / required

Duplication rule ID (1 - 255). see <a href=’#notes’>Notes</a>.

packet_de_duplication

string

Enable/disable discarding of packets that have been duplicated.

Choices:

  • "enable"

  • "disable"

packet_duplication

string

Configure packet duplication method.

Choices:

  • "disable"

  • "force"

  • "on-demand"

service

list / elements=dictionary

Service and service group name.

name

string / required

Service and service group name. Source firewall.service.custom.name firewall.service.group.name.

service_id

list / elements=dictionary

SD-WAN service rule ID list.

id

integer / required

SD-WAN service rule ID. see <a href=’#notes’>Notes</a>. Source system.sdwan.service.id.

sla_match_service

string

Enable/disable packet duplication matching health-check SLAs in service rule.

Choices:

  • "enable"

  • "disable"

srcaddr

list / elements=dictionary

Source address or address group names.

name

string / required

Address or address group name. Source firewall.address.name firewall.addrgrp.name.

srcaddr6

list / elements=dictionary

Source address6 or address6 group names.

name

string / required

Address6 or address6 group name. Source firewall.address6.name firewall.addrgrp6.name.

srcintf

list / elements=dictionary

Incoming (ingress) interfaces or zones.

name

string / required

Interface, zone or SDWAN zone name. Source system.interface.name system.zone.name system.sdwan.zone.name.

duplication_max_num

integer

Maximum number of interface members a packet is duplicated in the SD-WAN zone (2 - 4).

fail_alert_interfaces

list / elements=dictionary

Physical interfaces that will be alerted.

name

string / required

Physical interface name. Source system.interface.name.

fail_detect

string

Enable/disable SD-WAN Internet connection status checking (failure detection).

Choices:

  • "enable"

  • "disable"

health_check

list / elements=dictionary

SD-WAN status checking or health checking. Identify a server on the Internet and determine how SD-WAN verifies that the FortiGate can communicate with it.

addr_mode

string

Address mode (IPv4 or IPv6).

Choices:

  • "ipv4"

  • "ipv6"

class_id

integer

Traffic class ID. Source firewall.traffic-class.class-id.

detect_mode

string

The mode determining how to detect the server.

Choices:

  • "active"

  • "passive"

  • "prefer-passive"

  • "remote"

  • "agent-based"

diffservcode

string

Differentiated services code point (DSCP) in the IP header of the probe packet.

dns_match_ip

string

Response IP expected from DNS server if the protocol is DNS.

dns_request_domain

string

Fully qualified domain name to resolve for the DNS probe.

embed_measured_health

string

Enable/disable embedding measured health information.

Choices:

  • "enable"

  • "disable"

failtime

integer

Number of failures before server is considered lost (1 - 3600).

ftp_file

string

Full path and file name on the FTP server to download for FTP health-check to probe.

ftp_mode

string

FTP mode.

Choices:

  • "passive"

  • "port"

ha_priority

integer

HA election priority (1 - 50).

http_agent

string

String in the http-agent field in the HTTP header.

http_get

string

URL used to communicate with the server if the protocol if the protocol is HTTP.

http_match

string

Response string expected from the server if the protocol is HTTP.

interval

integer

Status check interval in milliseconds, or the time between attempting to connect to the server (20 - 3600*1000 msec).

members

list / elements=dictionary

Member sequence number list.

seq_num

integer / required

Member sequence number. see <a href=’#notes’>Notes</a>. Source system.sdwan.members.seq-num.

mos_codec

string

Codec to use for MOS calculation .

Choices:

  • "g711"

  • "g722"

  • "g729"

name

string / required

Status check or health check name.

packet_size

integer

Packet size of a TWAMP test session. (124/158 - 1024)

password

string

TWAMP controller password in authentication mode.

port

integer

Port number used to communicate with the server over the selected protocol (0 - 65535).

probe_count

integer

Number of most recent probes that should be used to calculate latency and jitter (5 - 30).

probe_packets

string

Enable/disable transmission of probe packets.

Choices:

  • "disable"

  • "enable"

probe_timeout

integer

Time to wait before a probe packet is considered lost (20 - 3600*1000 msec).

protocol

string

Protocol used to determine if the FortiGate can communicate with the server.

Choices:

  • "ping"

  • "tcp-echo"

  • "udp-echo"

  • "http"

  • "https"

  • "twamp"

  • "dns"

  • "tcp-connect"

  • "ftp"

  • "ping6"

quality_measured_method

string

Method to measure the quality of tcp-connect.

Choices:

  • "half-open"

  • "half-close"

recoverytime

integer

Number of successful responses received before server is considered recovered (1 - 3600).

security_mode

string

Twamp controller security mode.

Choices:

  • "none"

  • "authentication"

server

list / elements=string

IP address or FQDN name of the server.

sla

list / elements=dictionary

Service level agreement (SLA).

id

integer / required

SLA ID. see <a href=’#notes’>Notes</a>.

jitter_threshold

integer

Jitter for SLA to make decision in milliseconds. (0 - 10000000).

latency_threshold

integer

Latency for SLA to make decision in milliseconds. (0 - 10000000).

link_cost_factor

list / elements=string

Criteria on which to base link selection.

Choices:

  • "latency"

  • "jitter"

  • "packet-loss"

  • "mos"

  • "remote"

mos_threshold

string

Minimum Mean Opinion Score for SLA to be marked as pass. (1.0 - 5.0).

packetloss_threshold

integer

Packet loss for SLA to make decision in percentage. (0 - 100).

priority_in_sla

integer

Value to be distributed into routing table when in-sla (0 - 65535).

priority_out_sla

integer

Value to be distributed into routing table when out-sla (0 - 65535).

sla_fail_log_period

integer

Time interval in seconds that SLA fail log messages will be generated (0 - 3600).

sla_id_redistribute

integer

Select the ID from the SLA sub-table. The selected SLA”s priority value will be distributed into the routing table (0 - 32).

sla_pass_log_period

integer

Time interval in seconds that SLA pass log messages will be generated (0 - 3600).

source

string

Source IP address used in the health-check packet to the server.

source6

string

Source IPv6 address used in the health-check packet to server.

system_dns

string

Enable/disable system DNS as the probe server.

Choices:

  • "disable"

  • "enable"

threshold_alert_jitter

integer

Alert threshold for jitter (ms).

threshold_alert_latency

integer

Alert threshold for latency (ms).

threshold_alert_packetloss

integer

Alert threshold for packet loss (percentage).

threshold_warning_jitter

integer

Warning threshold for jitter (ms).

threshold_warning_latency

integer

Warning threshold for latency (ms).

threshold_warning_packetloss

integer

Warning threshold for packet loss (percentage).

update_cascade_interface

string

Enable/disable update cascade interface.

Choices:

  • "enable"

  • "disable"

update_static_route

string

Enable/disable updating the static route.

Choices:

  • "enable"

  • "disable"

user

string

The user name to access probe server.

vrf

integer

Virtual Routing Forwarding ID.

health_check_fortiguard

list / elements=dictionary

SD-WAN status checking or health checking. Identify a server predefine by FortiGuard and determine how SD-WAN verifies that FGT can communicate with it.

addr_mode

string

Address mode (IPv4 or IPv6).

Choices:

  • "ipv4"

  • "ipv6"

class_id

integer

Traffic class ID. Source firewall.traffic-class.class-id.

detect_mode

string

The mode determining how to detect the server.

Choices:

  • "active"

  • "passive"

  • "prefer-passive"

  • "remote"

  • "agent-based"

diffservcode

string

Differentiated services code point (DSCP) in the IP header of the probe packet.

dns_match_ip

string

Response IP expected from DNS server if the protocol is DNS.

dns_request_domain

string

Fully qualified domain name to resolve for the DNS probe.

embed_measured_health

string

Enable/disable embedding measured health information.

Choices:

  • "enable"

  • "disable"

failtime

integer

Number of failures before server is considered lost (1 - 3600).

ftp_file

string

Full path and file name on the FTP server to download for FTP health-check to probe.

ftp_mode

string

FTP mode.

Choices:

  • "passive"

  • "port"

ha_priority

integer

HA election priority (1 - 50).

http_agent

string

String in the http-agent field in the HTTP header.

http_get

string

URL used to communicate with the server if the protocol if the protocol is HTTP.

http_match

string

Response string expected from the server if the protocol is HTTP.

interval

integer

Status check interval in milliseconds, or the time between attempting to connect to the server (20 - 3600*1000 msec).

members

list / elements=dictionary

Member sequence number list.

seq_num

integer / required

Member sequence number. see <a href=’#notes’>Notes</a>. Source system.sdwan.members.seq-num.

mos_codec

string

Codec to use for MOS calculation .

Choices:

  • "g711"

  • "g722"

  • "g729"

packet_size

integer

Packet size of a TWAMP test session. (124/158 - 1024)

password

string

TWAMP controller password in authentication mode.

port

integer

Port number used to communicate with the server over the selected protocol (0 - 65535).

probe_count

integer

Number of most recent probes that should be used to calculate latency and jitter (5 - 30).

probe_packets

string

Enable/disable transmission of probe packets.

Choices:

  • "disable"

  • "enable"

probe_timeout

integer

Time to wait before a probe packet is considered lost (20 - 3600*1000 msec).

protocol

string

Protocol used to determine if the FortiGate can communicate with the server.

Choices:

  • "ping"

  • "tcp-echo"

  • "udp-echo"

  • "http"

  • "https"

  • "twamp"

  • "dns"

  • "tcp-connect"

  • "ftp"

quality_measured_method

string

Method to measure the quality of tcp-connect.

Choices:

  • "half-open"

  • "half-close"

recoverytime

integer

Number of successful responses received before server is considered recovered (1 - 3600).

security_mode

string

Twamp controller security mode.

Choices:

  • "none"

  • "authentication"

server

list / elements=string

Predefined IP address or FQDN name from FortiGuard.

sla

list / elements=dictionary

Service level agreement (SLA).

id

integer / required

SLA ID. see <a href=’#notes’>Notes</a>.

jitter_threshold

integer

Jitter for SLA to make decision in milliseconds. (0 - 10000000).

latency_threshold

integer

Latency for SLA to make decision in milliseconds. (0 - 10000000).

link_cost_factor

list / elements=string

Criteria on which to base link selection.

Choices:

  • "latency"

  • "jitter"

  • "packet-loss"

  • "mos"

  • "remote"

mos_threshold

string

Minimum Mean Opinion Score for SLA to be marked as pass. (1.0 - 5.0).

packetloss_threshold

integer

Packet loss for SLA to make decision in percentage. (0 - 100).

priority_in_sla

integer

Value to be distributed into routing table when in-sla (0 - 65535).

priority_out_sla

integer

Value to be distributed into routing table when out-sla (0 - 65535).

sla_fail_log_period

integer

Time interval in seconds that SLA fail log messages will be generated (0 - 3600).

sla_id_redistribute

integer

Select the ID from the SLA sub-table. The selected SLA”s priority value will be distributed into the routing table (0 - 32).

sla_pass_log_period

integer

Time interval in seconds that SLA pass log messages will be generated (0 - 3600).

source

string

Source IP address used in the health-check packet to the server.

source6

string

Source IPv6 address used in the health-check packet to server.

system_dns

string

Enable/disable system DNS as the probe server.

Choices:

  • "disable"

  • "enable"

target_name

string / required

Status check or predefined health-check targets name.

threshold_alert_jitter

integer

Alert threshold for jitter (ms).

threshold_alert_latency

integer

Alert threshold for latency (ms).

threshold_alert_packetloss

integer

Alert threshold for packet loss (percentage).

threshold_warning_jitter

integer

Warning threshold for jitter (ms).

threshold_warning_latency

integer

Warning threshold for latency (ms).

threshold_warning_packetloss

integer

Warning threshold for packet loss (percentage).

update_cascade_interface

string

Enable/disable update cascade interface.

Choices:

  • "enable"

  • "disable"

update_static_route

string

Enable/disable updating the static route.

Choices:

  • "enable"

  • "disable"

user

string

The user name to access probe server.

vrf

integer

Virtual Routing Forwarding ID.

load_balance_mode

string

Algorithm or mode to use for load balancing Internet traffic to SD-WAN members.

Choices:

  • "source-ip-based"

  • "weight-based"

  • "usage-based"

  • "source-dest-ip-based"

  • "measured-volume-based"

members

list / elements=dictionary

FortiGate interfaces added to the SD-WAN.

comment

string

Comments.

cost

integer

Cost of this interface for services in SLA mode (0 - 4294967295).

gateway

string

The default gateway for this interface. Usually the default gateway of the Internet service provider that this interface is connected to.

gateway6

string

IPv6 gateway.

ingress_spillover_threshold

integer

Ingress spillover threshold for this interface (0 - 16776000 kbit/s). When this traffic volume threshold is reached, new sessions spill over to other interfaces in the SD-WAN.

interface

string

Interface name. Source system.interface.name.

preferred_source

string

Preferred source of route for this member.

priority

integer

Priority of the interface for IPv4 (1 - 65535). Used for SD-WAN rules or priority rules.

priority6

integer

Priority of the interface for IPv6 (1 - 65535). Used for SD-WAN rules or priority rules.

priority_in_sla

integer

Preferred priority of routes to this member when this member is in-sla (0 - 65535).

priority_out_sla

integer

Preferred priority of routes to this member when this member is out-of-sla (0 - 65535).

seq_num

integer / required

Sequence number(1-512). see <a href=’#notes’>Notes</a>.

source

string

Source IP address used in the health-check packet to the server.

source6

string

Source IPv6 address used in the health-check packet to the server.

spillover_threshold

integer

Egress spillover threshold for this interface (0 - 16776000 kbit/s). When this traffic volume threshold is reached, new sessions spill over to other interfaces in the SD-WAN.

status

string

Enable/disable this interface in the SD-WAN.

Choices:

  • "disable"

  • "enable"

transport_group

integer

Measured transport group (0 - 255).

volume_ratio

integer

Measured volume ratio (this value / sum of all values = percentage of link volume, 1 - 255).

weight

integer

Weight of this interface for weighted load balancing. (1 - 255) More traffic is directed to interfaces with higher weights.

zone

string

Zone name. Source system.sdwan.zone.name.

neighbor

list / elements=dictionary

Create SD-WAN neighbor from BGP neighbor table to control route advertisements according to SLA status.

health_check

string

SD-WAN health-check name. Source system.sdwan.health-check.name system.sdwan.health-check-fortiguard.target-name.

ip

string / required

IP/IPv6 address of neighbor or neighbor-group name. Source router.bgp.neighbor-group.name router.bgp.neighbor.ip.

member

list / elements=dictionary

Member sequence number list. Source system.sdwan.members.seq-num.

seq_num

integer / required

Member sequence number. see <a href=’#notes’>Notes</a>. Source system.sdwan.members.seq-num.

minimum_sla_meet_members

integer

Minimum number of members which meet SLA when the neighbor is preferred.

mode

string

What metric to select the neighbor.

Choices:

  • "sla"

  • "speedtest"

role

string

Role of neighbor.

Choices:

  • "standalone"

  • "primary"

  • "secondary"

service_id

integer

SD-WAN service ID to work with the neighbor. Source system.sdwan.service.id.

sla_id

integer

SLA ID.

neighbor_hold_boot_time

integer

Waiting period in seconds when switching from the primary neighbor to the secondary neighbor from the neighbor start. (0 - 10000000).

neighbor_hold_down

string

Enable/disable hold switching from the secondary neighbor to the primary neighbor.

Choices:

  • "enable"

  • "disable"

neighbor_hold_down_time

integer

Waiting period in seconds when switching from the secondary neighbor to the primary neighbor when hold-down is disabled. (0 - 10000000).

service

list / elements=dictionary

Create SD-WAN rules (also called services) to control how sessions are distributed to interfaces in the SD-WAN.

addr_mode

string

Address mode (IPv4 or IPv6).

Choices:

  • "ipv4"

  • "ipv6"

agent_exclusive

string

Set/unset the service as agent use exclusively.

Choices:

  • "enable"

  • "disable"

bandwidth_weight

integer

Coefficient of reciprocal of available bidirectional bandwidth in the formula of custom-profile-1.

comment

string

Comments.

default

string

Enable/disable use of SD-WAN as default service.

Choices:

  • "enable"

  • "disable"

dscp_forward

string

Enable/disable forward traffic DSCP tag.

Choices:

  • "enable"

  • "disable"

dscp_forward_tag

string

Forward traffic DSCP tag.

dscp_reverse

string

Enable/disable reverse traffic DSCP tag.

Choices:

  • "enable"

  • "disable"

dscp_reverse_tag

string

Reverse traffic DSCP tag.

dst

list / elements=dictionary

Destination address name.

name

string / required

Address or address group name. Source firewall.address.name firewall.addrgrp.name.

dst6

list / elements=dictionary

Destination address6 name.

name

string / required

Address6 or address6 group name. Source firewall.address6.name firewall.addrgrp6.name.

dst_negate

string

Enable/disable negation of destination address match.

Choices:

  • "enable"

  • "disable"

end_port

integer

End destination port number.

end_src_port

integer

End source port number.

gateway

string

Enable/disable SD-WAN service gateway.

Choices:

  • "enable"

  • "disable"

groups

list / elements=dictionary

User groups.

name

string / required

Group name. Source user.group.name.

hash_mode

string

Hash algorithm for selected priority members for load balance mode.

Choices:

  • "round-robin"

  • "source-ip-based"

  • "source-dest-ip-based"

  • "inbandwidth"

  • "outbandwidth"

  • "bibandwidth"

health_check

list / elements=dictionary

Health check list.

name

string / required

Health check name. Source system.sdwan.health-check.name system.sdwan.health-check-fortiguard.target-name.

hold_down_time

integer

Waiting period in seconds when switching from the back-up member to the primary member (0 - 10000000).

id

integer / required

SD-WAN rule ID (1 - 4000). see <a href=’#notes’>Notes</a>.

input_device

list / elements=dictionary

Source interface name.

name

string / required

Interface name. Source system.interface.name.

input_device_negate

string

Enable/disable negation of input device match.

Choices:

  • "enable"

  • "disable"

input_zone

list / elements=dictionary

Source input-zone name.

name

string / required

Zone. Source system.sdwan.zone.name.

internet_service

string

Enable/disable use of Internet service for application-based load balancing.

Choices:

  • "enable"

  • "disable"

internet_service_app_ctrl

list / elements=dictionary

Application control based Internet Service ID list.

id

integer / required

Application control based Internet Service ID. see <a href=’#notes’>Notes</a>.

internet_service_app_ctrl_category

list / elements=dictionary

IDs of one or more application control categories.

id

integer / required

Application control category ID. see <a href=’#notes’>Notes</a>.

internet_service_app_ctrl_group

list / elements=dictionary

Application control based Internet Service group list.

name

string / required

Application control based Internet Service group name. Source application.group.name.

internet_service_custom

list / elements=dictionary

Custom Internet service name list.

name

string / required

Custom Internet service name. Source firewall.internet-service-custom.name.

internet_service_custom_group

list / elements=dictionary

Custom Internet Service group list.

name

string / required

Custom Internet Service group name. Source firewall.internet-service-custom-group.name.

internet_service_group

list / elements=dictionary

Internet Service group list.

name

string / required

Internet Service group name. Source firewall.internet-service-group.name.

internet_service_name

list / elements=dictionary

Internet service name list.

name

string / required

Internet service name. Source firewall.internet-service-name.name.

jitter_weight

integer

Coefficient of jitter in the formula of custom-profile-1.

latency_weight

integer

Coefficient of latency in the formula of custom-profile-1.

link_cost_factor

string

Link cost factor.

Choices:

  • "latency"

  • "jitter"

  • "packet-loss"

  • "inbandwidth"

  • "outbandwidth"

  • "bibandwidth"

  • "custom-profile-1"

link_cost_threshold

integer

Percentage threshold change of link cost values that will result in policy route regeneration (0 - 10000000).

load_balance

string

Enable/disable load-balance.

Choices:

  • "enable"

  • "disable"

minimum_sla_meet_members

integer

Minimum number of members which meet SLA.

mode

string

Control how the SD-WAN rule sets the priority of interfaces in the SD-WAN.

Choices:

  • "auto"

  • "manual"

  • "priority"

  • "sla"

  • "load-balance"

name

string

SD-WAN rule name.

packet_loss_weight

integer

Coefficient of packet-loss in the formula of custom-profile-1.

passive_measurement

string

Enable/disable passive measurement based on the service criteria.

Choices:

  • "enable"

  • "disable"

priority_members

list / elements=dictionary

Member sequence number list.

seq_num

integer / required

Member sequence number. see <a href=’#notes’>Notes</a>. Source system.sdwan.members.seq-num.

priority_zone

list / elements=dictionary

Priority zone name list.

name

string / required

Priority zone name. Source system.sdwan.zone.name.

protocol

integer

Protocol number.

quality_link

integer

Quality grade.

role

string

Service role to work with neighbor.

Choices:

  • "standalone"

  • "primary"

  • "secondary"

route_tag

integer

IPv4 route map route-tag.

shortcut

string

Enable/disable shortcut for this service.

Choices:

  • "enable"

  • "disable"

shortcut_priority

string

High priority of ADVPN shortcut for this service.

Choices:

  • "enable"

  • "disable"

  • "auto"

shortcut_stickiness

string

Enable/disable shortcut-stickiness of ADVPN.

Choices:

  • "enable"

  • "disable"

sla

list / elements=dictionary

Service level agreement (SLA).

health_check

string / required

SD-WAN health-check. Source system.sdwan.health-check.name system.sdwan.health-check-fortiguard.target-name.

id

integer

SLA ID.

sla_compare_method

string

Method to compare SLA value for SLA mode.

Choices:

  • "order"

  • "number"

sla_stickiness

string

Enable/disable SLA stickiness .

Choices:

  • "enable"

  • "disable"

src

list / elements=dictionary

Source address name.

name

string / required

Address or address group name. Source firewall.address.name firewall.addrgrp.name.

src6

list / elements=dictionary

Source address6 name.

name

string / required

Address6 or address6 group name. Source firewall.address6.name firewall.addrgrp6.name.

src_negate

string

Enable/disable negation of source address match.

Choices:

  • "enable"

  • "disable"

standalone_action

string

Enable/disable service when selected neighbor role is standalone while service role is not standalone.

Choices:

  • "enable"

  • "disable"

start_port

integer

Start destination port number.

start_src_port

integer

Start source port number.

status

string

Enable/disable SD-WAN service.

Choices:

  • "enable"

  • "disable"

tie_break

string

Method of selecting member if more than one meets the SLA.

Choices:

  • "zone"

  • "cfg-order"

  • "fib-best-match"

  • "input-device"

tos

string

Type of service bit pattern.

tos_mask

string

Type of service evaluated bits.

use_shortcut_sla

string

Enable/disable use of ADVPN shortcut for quality comparison.

Choices:

  • "enable"

  • "disable"

users

list / elements=dictionary

User name.

name

string / required

User name. Source user.local.name.

zone_mode

string

Enable/disable zone mode.

Choices:

  • "enable"

  • "disable"

speedtest_bypass_routing

string

Enable/disable bypass routing when speedtest on a SD-WAN member.

Choices:

  • "disable"

  • "enable"

status

string

Enable/disable SD-WAN.

Choices:

  • "disable"

  • "enable"

zone

list / elements=dictionary

Configure SD-WAN zones.

advpn_health_check

string

Health check for ADVPN local overlay link quality. Source system.sdwan.health-check.name.

advpn_select

string

Enable/disable selection of ADVPN based on SDWAN information.

Choices:

  • "enable"

  • "disable"

minimum_sla_meet_members

integer

Minimum number of members which meet SLA when the neighbor is preferred.

name

string / required

Zone name.

service_sla_tie_break

string

Method of selecting member if more than one meets the SLA.

Choices:

  • "cfg-order"

  • "fib-best-match"

  • "input-device"

vdom

string

Virtual domain, among those defined previously. A vdom is a virtual instance of the FortiGate that can be configured and used as a different unit.

Default: "root"

Notes

Note

  • Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks

Examples

- name: Configure redundant Internet connections with multiple outbound links and health-check profiles.
  fortinet.fortios.fortios_system_sdwan:
      vdom: "{{ vdom }}"
      system_sdwan:
          app_perf_log_period: "0"
          duplication:
              -
                  dstaddr:
                      -
                          name: "default_name_6 (source firewall.address.name firewall.addrgrp.name)"
                  dstaddr6:
                      -
                          name: "default_name_8 (source firewall.address6.name firewall.addrgrp6.name)"
                  dstintf:
                      -
                          name: "default_name_10 (source system.interface.name system.zone.name system.sdwan.zone.name)"
                  id: "11"
                  packet_de_duplication: "enable"
                  packet_duplication: "disable"
                  service:
                      -
                          name: "default_name_15 (source firewall.service.custom.name firewall.service.group.name)"
                  service_id:
                      -
                          id: "17 (source system.sdwan.service.id)"
                  sla_match_service: "enable"
                  srcaddr:
                      -
                          name: "default_name_20 (source firewall.address.name firewall.addrgrp.name)"
                  srcaddr6:
                      -
                          name: "default_name_22 (source firewall.address6.name firewall.addrgrp6.name)"
                  srcintf:
                      -
                          name: "default_name_24 (source system.interface.name system.zone.name system.sdwan.zone.name)"
          duplication_max_num: "2"
          fail_alert_interfaces:
              -
                  name: "default_name_27 (source system.interface.name)"
          fail_detect: "enable"
          health_check:
              -
                  addr_mode: "ipv4"
                  class_id: "0"
                  detect_mode: "active"
                  diffservcode: "<your_own_value>"
                  dns_match_ip: "<your_own_value>"
                  dns_request_domain: "<your_own_value>"
                  embed_measured_health: "enable"
                  failtime: "5"
                  ftp_file: "<your_own_value>"
                  ftp_mode: "passive"
                  ha_priority: "1"
                  http_agent: "<your_own_value>"
                  http_get: "<your_own_value>"
                  http_match: "<your_own_value>"
                  interval: "500"
                  members:
                      -
                          seq_num: "<you_own_value>"
                  mos_codec: "g711"
                  name: "default_name_48"
                  packet_size: "124"
                  password: "<your_own_value>"
                  port: "0"
                  probe_count: "30"
                  probe_packets: "disable"
                  probe_timeout: "500"
                  protocol: "ping"
                  quality_measured_method: "half-open"
                  recoverytime: "5"
                  security_mode: "none"
                  server: "192.168.100.40"
                  sla:
                      -
                          id: "61"
                          jitter_threshold: "5"
                          latency_threshold: "5"
                          link_cost_factor: "latency"
                          mos_threshold: "<your_own_value>"
                          packetloss_threshold: "0"
                          priority_in_sla: "0"
                          priority_out_sla: "0"
                  sla_fail_log_period: "0"
                  sla_id_redistribute: "0"
                  sla_pass_log_period: "0"
                  source: "<your_own_value>"
                  source6: "<your_own_value>"
                  system_dns: "disable"
                  threshold_alert_jitter: "0"
                  threshold_alert_latency: "0"
                  threshold_alert_packetloss: "0"
                  threshold_warning_jitter: "0"
                  threshold_warning_latency: "0"
                  threshold_warning_packetloss: "0"
                  update_cascade_interface: "enable"
                  update_static_route: "enable"
                  user: "<your_own_value>"
                  vrf: "0"
          health_check_fortiguard:
              -
                  addr_mode: "ipv4"
                  class_id: "0"
                  detect_mode: "active"
                  diffservcode: "<your_own_value>"
                  dns_match_ip: "<your_own_value>"
                  dns_request_domain: "<your_own_value>"
                  embed_measured_health: "enable"
                  failtime: "5"
                  ftp_file: "<your_own_value>"
                  ftp_mode: "passive"
                  ha_priority: "1"
                  http_agent: "<your_own_value>"
                  http_get: "<your_own_value>"
                  http_match: "<your_own_value>"
                  interval: "500"
                  members:
                      -
                          seq_num: "<you_own_value>"
                  mos_codec: "g711"
                  packet_size: "124"
                  password: "<your_own_value>"
                  port: "0"
                  probe_count: "30"
                  probe_packets: "disable"
                  probe_timeout: "500"
                  protocol: "ping"
                  quality_measured_method: "half-open"
                  recoverytime: "5"
                  security_mode: "none"
                  server: "192.168.100.40"
                  sla:
                      -
                          id: "116"
                          jitter_threshold: "5"
                          latency_threshold: "5"
                          link_cost_factor: "latency"
                          mos_threshold: "<your_own_value>"
                          packetloss_threshold: "0"
                          priority_in_sla: "0"
                          priority_out_sla: "0"
                  sla_fail_log_period: "0"
                  sla_id_redistribute: "0"
                  sla_pass_log_period: "0"
                  source: "<your_own_value>"
                  source6: "<your_own_value>"
                  system_dns: "disable"
                  target_name: "<your_own_value>"
                  threshold_alert_jitter: "0"
                  threshold_alert_latency: "0"
                  threshold_alert_packetloss: "0"
                  threshold_warning_jitter: "0"
                  threshold_warning_latency: "0"
                  threshold_warning_packetloss: "0"
                  update_cascade_interface: "enable"
                  update_static_route: "enable"
                  user: "<your_own_value>"
                  vrf: "0"
          load_balance_mode: "source-ip-based"
          members:
              -
                  comment: "Comments."
                  cost: "0"
                  gateway: "<your_own_value>"
                  gateway6: "<your_own_value>"
                  ingress_spillover_threshold: "0"
                  interface: "<your_own_value> (source system.interface.name)"
                  preferred_source: "<your_own_value>"
                  priority: "1"
                  priority_in_sla: "0"
                  priority_out_sla: "0"
                  priority6: "1024"
                  seq_num: "<you_own_value>"
                  source: "<your_own_value>"
                  source6: "<your_own_value>"
                  spillover_threshold: "0"
                  status: "disable"
                  transport_group: "0"
                  volume_ratio: "1"
                  weight: "1"
                  zone: "<your_own_value> (source system.sdwan.zone.name)"
          neighbor:
              -
                  health_check: "<your_own_value> (source system.sdwan.health-check.name system.sdwan.health-check-fortiguard.target-name)"
                  ip: "<your_own_value> (source router.bgp.neighbor-group.name router.bgp.neighbor.ip)"
                  member:
                      -
                          seq_num: "<you_own_value>"
                  minimum_sla_meet_members: "1"
                  mode: "sla"
                  role: "standalone"
                  service_id: "0"
                  sla_id: "0"
          neighbor_hold_boot_time: "0"
          neighbor_hold_down: "enable"
          neighbor_hold_down_time: "0"
          service:
              -
                  addr_mode: "ipv4"
                  agent_exclusive: "enable"
                  bandwidth_weight: "0"
                  comment: "Comments."
                  default: "enable"
                  dscp_forward: "enable"
                  dscp_forward_tag: "<your_own_value>"
                  dscp_reverse: "enable"
                  dscp_reverse_tag: "<your_own_value>"
                  dst:
                      -
                          name: "default_name_187 (source firewall.address.name firewall.addrgrp.name)"
                  dst_negate: "enable"
                  dst6:
                      -
                          name: "default_name_190 (source firewall.address6.name firewall.addrgrp6.name)"
                  end_port: "65535"
                  end_src_port: "65535"
                  gateway: "enable"
                  groups:
                      -
                          name: "default_name_195 (source user.group.name)"
                  hash_mode: "round-robin"
                  health_check:
                      -
                          name: "default_name_198 (source system.sdwan.health-check.name system.sdwan.health-check-fortiguard.target-name)"
                  hold_down_time: "0"
                  id: "200"
                  input_device:
                      -
                          name: "default_name_202 (source system.interface.name)"
                  input_device_negate: "enable"
                  input_zone:
                      -
                          name: "default_name_205 (source system.sdwan.zone.name)"
                  internet_service: "enable"
                  internet_service_app_ctrl:
                      -
                          id: "208"
                  internet_service_app_ctrl_category:
                      -
                          id: "210"
                  internet_service_app_ctrl_group:
                      -
                          name: "default_name_212 (source application.group.name)"
                  internet_service_custom:
                      -
                          name: "default_name_214 (source firewall.internet-service-custom.name)"
                  internet_service_custom_group:
                      -
                          name: "default_name_216 (source firewall.internet-service-custom-group.name)"
                  internet_service_group:
                      -
                          name: "default_name_218 (source firewall.internet-service-group.name)"
                  internet_service_name:
                      -
                          name: "default_name_220 (source firewall.internet-service-name.name)"
                  jitter_weight: "0"
                  latency_weight: "0"
                  link_cost_factor: "latency"
                  link_cost_threshold: "10"
                  load_balance: "enable"
                  minimum_sla_meet_members: "0"
                  mode: "auto"
                  name: "default_name_228"
                  packet_loss_weight: "0"
                  passive_measurement: "enable"
                  priority_members:
                      -
                          seq_num: "<you_own_value>"
                  priority_zone:
                      -
                          name: "default_name_234 (source system.sdwan.zone.name)"
                  protocol: "0"
                  quality_link: "0"
                  role: "standalone"
                  route_tag: "0"
                  shortcut: "enable"
                  shortcut_priority: "enable"
                  shortcut_stickiness: "enable"
                  sla:
                      -
                          health_check: "<your_own_value> (source system.sdwan.health-check.name system.sdwan.health-check-fortiguard.target-name)"
                          id: "244"
                  sla_compare_method: "order"
                  sla_stickiness: "enable"
                  src:
                      -
                          name: "default_name_248 (source firewall.address.name firewall.addrgrp.name)"
                  src_negate: "enable"
                  src6:
                      -
                          name: "default_name_251 (source firewall.address6.name firewall.addrgrp6.name)"
                  standalone_action: "enable"
                  start_port: "1"
                  start_src_port: "1"
                  status: "enable"
                  tie_break: "zone"
                  tos: "<your_own_value>"
                  tos_mask: "<your_own_value>"
                  use_shortcut_sla: "enable"
                  users:
                      -
                          name: "default_name_261 (source user.local.name)"
                  zone_mode: "enable"
          speedtest_bypass_routing: "disable"
          status: "disable"
          zone:
              -
                  advpn_health_check: "<your_own_value> (source system.sdwan.health-check.name)"
                  advpn_select: "enable"
                  minimum_sla_meet_members: "1"
                  name: "default_name_269"
                  service_sla_tie_break: "cfg-order"

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

build

string

Build number of the fortigate image

Returned: always

Sample: "1547"

http_method

string

Last method used to provision the content into FortiGate

Returned: always

Sample: "PUT"

http_status

string

Last result given by FortiGate on last operation applied

Returned: always

Sample: "200"

mkey

string

Master key (id) used in the last call to FortiGate

Returned: success

Sample: "id"

name

string

Name of the table used to fulfill the request

Returned: always

Sample: "urlfilter"

path

string

Path of the table used to fulfill the request

Returned: always

Sample: "webfilter"

revision

string

Internal revision number

Returned: always

Sample: "17.0.2.10658"

serial

string

Serial number of the unit

Returned: always

Sample: "FGVMEVYYQT3AB5352"

status

string

Indication of the operation’s result

Returned: always

Sample: "success"

vdom

string

Virtual domain used

Returned: always

Sample: "root"

version

string

Version of the FortiGate

Returned: always

Sample: "v5.6.3"

Authors

  • Link Zheng (@chillancezen)

  • Jie Xue (@JieX19)

  • Hongbin Lu (@fgtdev-hblu)

  • Frank Shen (@frankshen01)

  • Miguel Angel Munoz (@mamunozgonzalez)

  • Nicolas Thomas (@thomnico)

Collection links

  • Issue Tracker
  • Homepage
  • Repository (Sources)
Previous Next

© Copyright Ansible project contributors. Last updated on Dec 03, 2024.