fortinet.fortios.fortios_system_interface – Configure interfaces in Fortinet’s FortiOS and FortiGate.

Note

This plugin is part of the fortinet.fortios collection (version 2.1.3).

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.

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

New in version 2.10: of fortinet.fortios

Synopsis

  • This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify system feature and interface 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.9.0

Parameters

Parameter

Comments

access_token

string

Token-based authentication. Generated from GUI of Fortigate.

enable_log

boolean

Enable/Disable logging for task.

Choices:

  • no ← (default)

  • yes

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

state

string / required

Indicates whether to create or remove the object.

Choices:

  • present

  • absent

system_interface

dictionary

Configure interfaces.

ac_name

string

PPPoE server name.

aggregate

string

Aggregate interface.

algorithm

string

Frame distribution algorithm.

Choices:

  • L2

  • L3

  • L4

alias

string

Alias will be displayed with the interface name to make it easier to distinguish.

allowaccess

list / elements=string

Permitted types of management access to this interface.

Choices:

  • ping

  • https

  • ssh

  • snmp

  • http

  • telnet

  • fgfm

  • radius-acct

  • probe-response

  • capwap

  • ftm

  • fabric

  • speed-test

ap_discover

string

Enable/disable automatic registration of unknown FortiAP devices.

Choices:

  • enable

  • disable

arpforward

string

Enable/disable ARP forwarding.

Choices:

  • enable

  • disable

auth_type

string

PPP authentication type to use.

Choices:

  • auto

  • pap

  • chap

  • mschapv1

  • mschapv2

auto_auth_extension_device

string

Enable/disable automatic authorization of dedicated Fortinet extension device on this interface.

Choices:

  • enable

  • disable

bandwidth_measure_time

integer

Bandwidth measure time

bfd

string

Bidirectional Forwarding Detection (BFD) settings.

Choices:

  • global

  • enable

  • disable

bfd_desired_min_tx

integer

BFD desired minimal transmit interval.

bfd_detect_mult

integer

BFD detection multiplier.

bfd_required_min_rx

integer

BFD required minimal receive interval.

broadcast_forticlient_discovery

string

Enable/disable broadcasting FortiClient discovery messages.

Choices:

  • enable

  • disable

broadcast_forward

string

Enable/disable broadcast forwarding.

Choices:

  • enable

  • disable

captive_portal

integer

Enable/disable captive portal.

cli_conn_status

integer

CLI connection status.

client_options

list / elements=string

DHCP client options.

code

integer

DHCP client option code.

id

integer / required

ID.

ip

string

DHCP option IPs.

type

string

DHCP client option type.

Choices:

  • hex

  • string

  • ip

  • fqdn

value

string

DHCP client option value.

color

integer

Color of icon on the GUI.

dedicated_to

string

Configure interface for single purpose.

Choices:

  • none

  • management

defaultgw

string

Enable to get the gateway IP from the DHCP or PPPoE server.

Choices:

  • enable

  • disable

description

string

Description.

detected_peer_mtu

integer

MTU of detected peer (0 - 4294967295).

detectprotocol

list / elements=string

Protocols used to detect the server.

Choices:

  • ping

  • tcp-echo

  • udp-echo

detectserver

string

Gateway”s ping server for this IP.

device_access_list

string

Device access list.

device_identification

string

Enable/disable passively gathering of device identity information about the devices on the network connected to this interface.

Choices:

  • enable

  • disable

device_identification_active_scan

string

Enable/disable active gathering of device identity information about the devices on the network connected to this interface.

Choices:

  • enable

  • disable

device_netscan

string

Enable/disable inclusion of devices detected on this interface in network vulnerability scans.

Choices:

  • disable

  • enable

device_user_identification

string

Enable/disable passive gathering of user identity information about users on this interface.

Choices:

  • enable

  • disable

devindex

integer

Device Index.

dhcp_classless_route_addition

string

Enable/disable addition of classless static routes retrieved from DHCP server.

Choices:

  • enable

  • disable

dhcp_client_identifier

string

DHCP client identifier.

dhcp_relay_agent_option

string

Enable/disable DHCP relay agent option.

Choices:

  • enable

  • disable

dhcp_relay_interface

string

Specify outgoing interface to reach server. Source system.interface.name.

dhcp_relay_interface_select_method

string

Specify how to select outgoing interface to reach server.

Choices:

  • auto

  • sdwan

  • specify

dhcp_relay_ip

string

DHCP relay IP address.

dhcp_relay_request_all_server

string

Enable/disable sending of DHCP requests to all servers.

Choices:

  • disable

  • enable

dhcp_relay_service

string

Enable/disable allowing this interface to act as a DHCP relay.

Choices:

  • disable

  • enable

dhcp_relay_type

string

DHCP relay type (regular or IPsec).

Choices:

  • regular

  • ipsec

dhcp_renew_time

integer

DHCP renew time in seconds (300-604800), 0 means use the renew time provided by the server.

dhcp_snooping_server_list

list / elements=string

Configure DHCP server access list.

name

string / required

DHCP server name.

server_ip

string

IP address for DHCP server.

disc_retry_timeout

integer

Time in seconds to wait before retrying to start a PPPoE discovery, 0 means no timeout.

disconnect_threshold

integer

Time in milliseconds to wait before sending a notification that this interface is down or disconnected.

distance

integer

Distance for routes learned through PPPoE or DHCP, lower distance indicates preferred route.

dns_server_override

string

Enable/disable use DNS acquired by DHCP or PPPoE.

Choices:

  • enable

  • disable

drop_fragment

string

Enable/disable drop fragment packets.

Choices:

  • enable

  • disable

drop_overlapped_fragment

string

Enable/disable drop overlapped fragment packets.

Choices:

  • enable

  • disable

egress_cos

string

Override outgoing CoS in user VLAN tag.

Choices:

  • disable

  • cos0

  • cos1

  • cos2

  • cos3

  • cos4

  • cos5

  • cos6

  • cos7

egress_queues

dictionary

Configure queues of NP port on egress path.

cos0

string

CoS profile name for CoS 0. Source system.isf-queue-profile.name.

cos1

string

CoS profile name for CoS 1. Source system.isf-queue-profile.name.

cos2

string

CoS profile name for CoS 2. Source system.isf-queue-profile.name.

cos3

string

CoS profile name for CoS 3. Source system.isf-queue-profile.name.

cos4

string

CoS profile name for CoS 4. Source system.isf-queue-profile.name.

cos5

string

CoS profile name for CoS 5. Source system.isf-queue-profile.name.

cos6

string

CoS profile name for CoS 6. Source system.isf-queue-profile.name.

cos7

string

CoS profile name for CoS 7. Source system.isf-queue-profile.name.

egress_shaping_profile

string

Outgoing traffic shaping profile. Source firewall.shaping-profile.profile-name.

endpoint_compliance

string

Enable/disable endpoint compliance enforcement.

Choices:

  • enable

  • disable

estimated_downstream_bandwidth

integer

Estimated maximum downstream bandwidth (kbps). Used to estimate link utilization.

estimated_upstream_bandwidth

integer

Estimated maximum upstream bandwidth (kbps). Used to estimate link utilization.

explicit_ftp_proxy

string

Enable/disable the explicit FTP proxy on this interface.

Choices:

  • enable

  • disable

explicit_web_proxy

string

Enable/disable the explicit web proxy on this interface.

Choices:

  • enable

  • disable

external

string

Enable/disable identifying the interface as an external interface (which usually means it”s connected to the Internet).

Choices:

  • enable

  • disable

fail_action_on_extender

string

Action on extender when interface fail .

Choices:

  • soft-restart

  • hard-restart

  • reboot

fail_alert_interfaces

list / elements=string

Names of the FortiGate interfaces from which the link failure alert is sent for this interface.

name

string / required

Names of the physical interfaces belonging to the aggregate or redundant interface. Source system.interface.name.

fail_alert_method

string

Select link-failed-signal or link-down method to alert about a failed link.

Choices:

  • link-failed-signal

  • link-down

fail_detect

string

Enable/disable fail detection features for this interface.

Choices:

  • enable

  • disable

fail_detect_option

list / elements=string

Options for detecting that this interface has failed.

Choices:

  • detectserver

  • link-down

fortiheartbeat

string

Enable/disable FortiHeartBeat (FortiTelemetry on GUI).

Choices:

  • enable

  • disable

string

Enable FortiLink to dedicate this interface to manage other Fortinet devices.

Choices:

  • enable

  • disable

integer

fortilink split interface backup link.

string

Protocol for FortiGate neighbor discovery.

Choices:

  • lldp

  • fortilink

string

Enable/disable FortiLink split interface to connect member link to different FortiSwitch in stack for uplink redundancy (maximum 2 interfaces in the “members” command).

Choices:

  • enable

  • disable

string

Enable/disable FortiLink switch-stacking on this interface.

Choices:

  • enable

  • disable

forward_domain

integer

Transparent mode forward domain.

gi_gk

string

Enable/disable Gi Gatekeeper.

Choices:

  • enable

  • disable

gwdetect

string

Enable/disable detect gateway alive for first.

Choices:

  • enable

  • disable

ha_priority

integer

HA election priority for the PING server.

icmp_accept_redirect

string

Enable/disable ICMP accept redirect.

Choices:

  • enable

  • disable

icmp_send_redirect

string

Enable/disable ICMP send redirect.

Choices:

  • enable

  • disable

ident_accept

string

Enable/disable authentication for this interface.

Choices:

  • enable

  • disable

idle_timeout

integer

PPPoE auto disconnect after idle timeout seconds, 0 means no timeout.

inbandwidth

integer

Bandwidth limit for incoming traffic (0 - 16776000 kbps), 0 means unlimited.

ingress_cos

string

Override incoming CoS in user VLAN tag on VLAN interface or assign a priority VLAN tag on physical interface.

Choices:

  • disable

  • cos0

  • cos1

  • cos2

  • cos3

  • cos4

  • cos5

  • cos6

  • cos7

ingress_shaping_profile

string

Incoming traffic shaping profile. Source firewall.shaping-profile.profile-name.

ingress_spillover_threshold

integer

Ingress Spillover threshold (0 - 16776000 kbps).

interface

string

Interface name. Source system.interface.name.

internal

integer

Implicitly created.

ip

string

Interface IPv4 address and subnet mask, syntax: X.X.X.X/24.

ip_managed_by_fortiipam

string

Enable/disable automatic IP address assignment of this interface by FortiIPAM.

Choices:

  • enable

  • disable

ipmac

string

Enable/disable IP/MAC binding.

Choices:

  • enable

  • disable

ips_sniffer_mode

string

Enable/disable the use of this interface as a one-armed sniffer.

Choices:

  • enable

  • disable

ipunnumbered

string

Unnumbered IP used for PPPoE interfaces for which no unique local address is provided.

ipv6

dictionary

IPv6 of interface.

autoconf

string

Enable/disable address auto config.

Choices:

  • enable

  • disable

cli_conn6_status

integer

CLI IPv6 connection status.

dhcp6_client_options

list / elements=string

DHCPv6 client options.

Choices:

  • rapid

  • iapd

  • iana

dhcp6_information_request

string

Enable/disable DHCPv6 information request.

Choices:

  • enable

  • disable

dhcp6_prefix_delegation

string

Enable/disable DHCPv6 prefix delegation.

Choices:

  • enable

  • disable

dhcp6_prefix_hint

string

DHCPv6 prefix that will be used as a hint to the upstream DHCPv6 server.

dhcp6_prefix_hint_plt

integer

DHCPv6 prefix hint preferred life time (sec), 0 means unlimited lease time.

dhcp6_prefix_hint_vlt

integer

DHCPv6 prefix hint valid life time (sec).

dhcp6_relay_ip

string

DHCPv6 relay IP address.

dhcp6_relay_service

string

Enable/disable DHCPv6 relay.

Choices:

  • disable

  • enable

dhcp6_relay_type

string

DHCPv6 relay type.

Choices:

  • regular

icmp6_send_redirect

string

Enable/disable sending of ICMPv6 redirects.

Choices:

  • enable

  • disable

interface_identifier

string

IPv6 interface identifier.

ip6_address

string

Primary IPv6 address prefix, syntax: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/xxx

ip6_allowaccess

list / elements=string

Allow management access to the interface.

Choices:

  • ping

  • https

  • ssh

  • snmp

  • http

  • telnet

  • fgfm

  • capwap

  • fabric

ip6_default_life

integer

Default life (sec).

ip6_delegated_prefix_list

list / elements=string

Advertised IPv6 delegated prefix list.

autonomous_flag

string

Enable/disable the autonomous flag.

Choices:

  • enable

  • disable

string

Enable/disable the onlink flag.

Choices:

  • enable

  • disable

prefix_id

integer

Prefix ID.

rdnss

string

Recursive DNS server option.

rdnss_service

string

Recursive DNS service option.

Choices:

  • delegated

  • default

  • specify

subnet

string

Add subnet ID to routing prefix.

upstream_interface

string

Name of the interface that provides delegated information. Source system.interface.name.

ip6_dns_server_override

string

Enable/disable using the DNS server acquired by DHCP.

Choices:

  • enable

  • disable

ip6_extra_addr

list / elements=string

Extra IPv6 address prefixes of interface.

prefix

string / required

IPv6 address prefix.

ip6_hop_limit

integer

Hop limit (0 means unspecified).

integer

IPv6 link MTU.

ip6_manage_flag

string

Enable/disable the managed flag.

Choices:

  • enable

  • disable

ip6_max_interval

integer

IPv6 maximum interval (4 to 1800 sec).

ip6_min_interval

integer

IPv6 minimum interval (3 to 1350 sec).

ip6_mode

string

Addressing mode (static, DHCP, delegated).

Choices:

  • static

  • dhcp

  • pppoe

  • delegated

ip6_other_flag

string

Enable/disable the other IPv6 flag.

Choices:

  • enable

  • disable

ip6_prefix_list

list / elements=string

Advertised prefix list.

autonomous_flag

string

Enable/disable the autonomous flag.

Choices:

  • enable

  • disable

dnssl

list / elements=string

DNS search list option.

domain

string / required

Domain name.

string

Enable/disable the onlink flag.

Choices:

  • enable

  • disable

preferred_life_time

integer

Preferred life time (sec).

prefix

string / required

IPv6 prefix.

rdnss

string

Recursive DNS server option.

valid_life_time

integer

Valid life time (sec).

ip6_prefix_mode

string

Assigning a prefix from DHCP or RA.

Choices:

  • dhcp6

  • ra

ip6_reachable_time

integer

IPv6 reachable time (milliseconds; 0 means unspecified).

ip6_retrans_time

integer

IPv6 retransmit time (milliseconds; 0 means unspecified).

ip6_send_adv

string

Enable/disable sending advertisements about the interface.

Choices:

  • enable

  • disable

ip6_subnet

string

Subnet to routing prefix, syntax: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/xxx

ip6_upstream_interface

string

Interface name providing delegated information. Source system.interface.name.

nd_cert

string

Neighbor discovery certificate. Source certificate.local.name.

nd_cga_modifier

string

Neighbor discovery CGA modifier.

nd_mode

string

Neighbor discovery mode.

Choices:

  • basic

  • SEND-compatible

nd_security_level

integer

Neighbor discovery security level (0 - 7; 0 = least secure).

nd_timestamp_delta

integer

Neighbor discovery timestamp delta value (1 - 3600 sec; ).

nd_timestamp_fuzz

integer

Neighbor discovery timestamp fuzz factor (1 - 60 sec; ).

ra_send_mtu

string

Enable/disable sending link MTU in RA packet.

Choices:

  • enable

  • disable

unique_autoconf_addr

string

Enable/disable unique auto config address.

Choices:

  • enable

  • disable

string

Link-local IPv6 address of virtual router.

vrrp6

list / elements=string

IPv6 VRRP configuration.

accept_mode

string

Enable/disable accept mode.

Choices:

  • enable

  • disable

adv_interval

integer

Advertisement interval (1 - 255 seconds).

preempt

string

Enable/disable preempt mode.

Choices:

  • enable

  • disable

priority

integer

Priority of the virtual router (1 - 255).

start_time

integer

Startup time (1 - 255 seconds).

status

string

Enable/disable VRRP.

Choices:

  • enable

  • disable

vrdst6

string

Monitor the route to this destination.

vrgrp

integer

VRRP group ID (1 - 65535).

vrid

integer / required

Virtual router identifier (1 - 255).

vrip6

string

IPv6 address of the virtual router.

vrrp_virtual_mac6

string

Enable/disable virtual MAC for VRRP.

Choices:

  • enable

  • disable

l2forward

string

Enable/disable l2 forwarding.

Choices:

  • enable

  • disable

lacp_ha_slave

string

LACP HA slave.

Choices:

  • enable

  • disable

lacp_mode

string

LACP mode.

Choices:

  • static

  • passive

  • active

lacp_speed

string

How often the interface sends LACP messages.

Choices:

  • slow

  • fast

lcp_echo_interval

integer

Time in seconds between PPPoE Link Control Protocol (LCP) echo requests.

lcp_max_echo_fails

integer

Maximum missed LCP echo messages before disconnect.

integer

Number of milliseconds to wait before considering a link is up.

lldp_network_policy

string

LLDP-MED network policy profile. Source system.lldp.network-policy.name.

lldp_reception

string

Enable/disable Link Layer Discovery Protocol (LLDP) reception.

Choices:

  • enable

  • disable

  • vdom

lldp_transmission

string

Enable/disable Link Layer Discovery Protocol (LLDP) transmission.

Choices:

  • enable

  • disable

  • vdom

macaddr

string

Change the interface”s MAC address.

managed_device

list / elements=string

Available when FortiLink is enabled, used for managed devices through FortiLink interface.

name

string / required

Managed dev identifier.

managed_subnetwork_size

string

Number of IP addresses to be allocated by FortiIPAM and used by this FortiGate unit”s DHCP server settings.

Choices:

  • 256

  • 512

  • 1024

  • 2048

  • 4096

  • 8192

  • 16384

  • 32768

  • 65536

management_ip

string

High Availability in-band management IP address of this interface.

measured_downstream_bandwidth

integer

Measured downstream bandwidth (kbps).

measured_upstream_bandwidth

integer

Measured upstream bandwidth (kbps).

mediatype

string

Select SFP media interface type

Choices:

  • cfp2-sr10

  • cfp2-lr4

member

list / elements=string

Physical interfaces that belong to the aggregate or redundant interface.

interface_name

string

Physical interface name. Source system.interface.name.

integer

Minimum number of aggregated ports that must be up.

string

Action to take when less than the configured minimum number of links are active.

Choices:

  • operational

  • administrative

mode

string

Addressing mode (static, DHCP, PPPoE).

Choices:

  • static

  • dhcp

  • pppoe

monitor_bandwidth

string

Enable monitoring bandwidth on this interface.

Choices:

  • enable

  • disable

mtu

integer

MTU value for this interface.

mtu_override

string

Enable to set a custom MTU for this interface.

Choices:

  • enable

  • disable

name

string / required

Name.

ndiscforward

string

Enable/disable NDISC forwarding.

Choices:

  • enable

  • disable

netbios_forward

string

Enable/disable NETBIOS forwarding.

Choices:

  • disable

  • enable

netflow_sampler

string

Enable/disable NetFlow on this interface and set the data that NetFlow collects (rx, tx, or both).

Choices:

  • disable

  • tx

  • rx

  • both

outbandwidth

integer

Bandwidth limit for outgoing traffic (0 - 16776000 kbps).

padt_retry_timeout

integer

PPPoE Active Discovery Terminate (PADT) used to terminate sessions after an idle time.

password

string

PPPoE account”s password.

ping_serv_status

integer

PING server status.

polling_interval

integer

sFlow polling interval (1 - 255 sec).

pppoe_unnumbered_negotiate

string

Enable/disable PPPoE unnumbered negotiation.

Choices:

  • enable

  • disable

pptp_auth_type

string

PPTP authentication type.

Choices:

  • auto

  • pap

  • chap

  • mschapv1

  • mschapv2

pptp_client

string

Enable/disable PPTP client.

Choices:

  • enable

  • disable

pptp_password

string

PPTP password.

pptp_server_ip

string

PPTP server IP address.

pptp_timeout

integer

Idle timer in minutes (0 for disabled).

pptp_user

string

PPTP user name.

preserve_session_route

string

Enable/disable preservation of session route when dirty.

Choices:

  • enable

  • disable

priority

integer

Priority of learned routes.

priority_override

string

Enable/disable fail back to higher priority port once recovered.

Choices:

  • enable

  • disable

proxy_captive_portal

string

Enable/disable proxy captive portal on this interface.

Choices:

  • enable

  • disable

redundant_interface

string

Redundant interface.

remote_ip

string

Remote IP address of tunnel.

replacemsg_override_group

string

Replacement message override group.

ring_rx

integer

RX ring size.

ring_tx

integer

TX ring size.

role

string

Interface role.

Choices:

  • lan

  • wan

  • dmz

  • undefined

sample_direction

string

Data that NetFlow collects (rx, tx, or both).

Choices:

  • tx

  • rx

  • both

sample_rate

integer

sFlow sample rate (10 - 99999).

scan_botnet_connections

string

Enable monitoring or blocking connections to Botnet servers through this interface.

Choices:

  • disable

  • block

  • monitor

secondary_IP

string

Enable/disable adding a secondary IP to this interface.

Choices:

  • enable

  • disable

secondaryip

list / elements=string

Second IP address of interface.

allowaccess

list / elements=string

Management access settings for the secondary IP address.

Choices:

  • ping

  • https

  • ssh

  • snmp

  • http

  • telnet

  • fgfm

  • radius-acct

  • probe-response

  • capwap

  • ftm

  • fabric

  • speed-test

detectprotocol

list / elements=string

Protocols used to detect the server.

Choices:

  • ping

  • tcp-echo

  • udp-echo

detectserver

string

Gateway”s ping server for this IP.

gwdetect

string

Enable/disable detect gateway alive for first.

Choices:

  • enable

  • disable

ha_priority

integer

HA election priority for the PING server.

id

integer / required

ID.

ip

string

Secondary IP address of the interface.

ping_serv_status

integer

PING server status.

security_exempt_list

string

Name of security-exempt-list.

security_external_logout

string

URL of external authentication logout server.

security_external_web

string

URL of external authentication web server.

security_groups

list / elements=string

User groups that can authenticate with the captive portal.

name

string / required

Names of user groups that can authenticate with the captive portal. Source user.group.name.

security_mac_auth_bypass

string

Enable/disable MAC authentication bypass.

Choices:

  • enable

  • disable

  • mac-auth-only

security_mode

string

Turn on captive portal authentication for this interface.

Choices:

  • none

  • captive-portal

  • 802.1X

security_redirect_url

string

URL redirection after disclaimer/authentication.

service_name

string

PPPoE service name.

sflow_sampler

string

Enable/disable sFlow on this interface.

Choices:

  • enable

  • disable

snmp_index

integer

Permanent SNMP Index of the interface.

speed

string

Interface speed. The default setting and the options available depend on the interface hardware.

Choices:

  • auto

  • 10full

  • 10half

  • 100full

  • 100half

  • 1000full

  • 1000half

  • 1000auto

  • 10000full

  • 10000auto

  • 40000full

  • 100Gfull

spillover_threshold

integer

Egress Spillover threshold (0 - 16776000 kbps), 0 means unlimited.

src_check

string

Enable/disable source IP check.

Choices:

  • enable

  • disable

status

string

Bring the interface up or shut the interface down.

Choices:

  • up

  • down

stp

string

Enable/disable STP.

Choices:

  • disable

  • enable

stp_ha_secondary

string

Control STP behaviour on HA secondary.

Choices:

  • disable

  • enable

  • priority-adjust

stp_ha_slave

string

Control STP behaviour on HA slave.

Choices:

  • disable

  • enable

  • priority-adjust

stpforward

string

Enable/disable STP forwarding.

Choices:

  • enable

  • disable

stpforward_mode

string

Configure STP forwarding mode.

Choices:

  • rpl-all-ext-id

  • rpl-bridge-ext-id

  • rpl-nothing

subst

string

Enable to always send packets from this interface to a destination MAC address.

Choices:

  • enable

  • disable

substitute_dst_mac

string

Destination MAC address that all packets are sent to from this interface.

swc_first_create

integer

Initial create for switch-controller VLANs.

swc_vlan

integer

Creation status for switch-controller VLANs.

switch

string

Contained in switch.

switch_controller_access_vlan

string

Block FortiSwitch port-to-port traffic.

Choices:

  • enable

  • disable

switch_controller_arp_inspection

string

Enable/disable FortiSwitch ARP inspection.

Choices:

  • enable

  • disable

switch_controller_dhcp_snooping

string

Switch controller DHCP snooping.

Choices:

  • enable

  • disable

switch_controller_dhcp_snooping_option82

string

Switch controller DHCP snooping option82.

Choices:

  • enable

  • disable

switch_controller_dhcp_snooping_verify_mac

string

Switch controller DHCP snooping verify MAC.

Choices:

  • enable

  • disable

switch_controller_dynamic

string

Integrated FortiLink settings for managed FortiSwitch. Source switch-controller.fortilink-settings.name.

switch_controller_feature

string

Interface”s purpose when assigning traffic (read only).

Choices:

  • none

  • default-vlan

  • quarantine

  • rspan

  • voice

  • video

  • nac

  • nac-segment

switch_controller_igmp_snooping

string

Switch controller IGMP snooping.

Choices:

  • enable

  • disable

switch_controller_igmp_snooping_fast_leave

string

Switch controller IGMP snooping fast-leave.

Choices:

  • enable

  • disable

switch_controller_igmp_snooping_proxy

string

Switch controller IGMP snooping proxy.

Choices:

  • enable

  • disable

switch_controller_iot_scanning

string

Enable/disable managed FortiSwitch IoT scanning.

Choices:

  • enable

  • disable

switch_controller_learning_limit

integer

Limit the number of dynamic MAC addresses on this VLAN (1 - 128, 0 = no limit, default).

switch_controller_mgmt_vlan

integer

VLAN to use for FortiLink management purposes.

switch_controller_nac

string

Integrated NAC settings for managed FortiSwitch. Source switch-controller.nac-settings.name.

switch_controller_rspan_mode

string

Stop Layer2 MAC learning and interception of BPDUs and other packets on this interface.

Choices:

  • disable

  • enable

switch_controller_source_ip

string

Source IP address used in FortiLink over L3 connections.

Choices:

  • outbound

  • fixed

switch_controller_traffic_policy

string

Switch controller traffic policy for the VLAN. Source switch-controller.traffic-policy.name.

tagging

list / elements=string

Config object tagging.

category

string

Tag category. Source system.object-tagging.category.

name

string / required

Tagging entry name.

tags

list / elements=string

Tags.

name

string / required

Tag name. Source system.object-tagging.tags.name.

tcp_mss

integer

TCP maximum segment size. 0 means do not change segment size.

trust_ip6_1

string

Trusted IPv6 host for dedicated management traffic (::/0 for all hosts).

trust_ip6_2

string

Trusted IPv6 host for dedicated management traffic (::/0 for all hosts).

trust_ip6_3

string

Trusted IPv6 host for dedicated management traffic (::/0 for all hosts).

trust_ip_1

string

Trusted host for dedicated management traffic (0.0.0.0/24 for all hosts).

trust_ip_2

string

Trusted host for dedicated management traffic (0.0.0.0/24 for all hosts).

trust_ip_3

string

Trusted host for dedicated management traffic (0.0.0.0/24 for all hosts).

type

string

Interface type.

Choices:

  • physical

  • vlan

  • aggregate

  • redundant

  • tunnel

  • vdom-link

  • loopback

  • switch

  • hard-switch

  • vap-switch

  • wl-mesh

  • fext-wan

  • vxlan

  • hdlc

  • switch-vlan

  • emac-vlan

  • geneve

  • ssl

username

string

Username of the PPPoE account, provided by your ISP.

vdom

string

Interface is in this virtual domain (VDOM). Source system.vdom.name.

vindex

integer

Switch control interface VLAN ID.

vlan_protocol

string

Ethernet protocol of VLAN.

Choices:

  • 8021q

  • 8021ad

vlanforward

string

Enable/disable traffic forwarding between VLANs on this interface.

Choices:

  • enable

  • disable

vlanid

integer

VLAN ID (1 - 4094).

vrf

integer

Virtual Routing Forwarding ID.

vrrp

list / elements=string

VRRP configuration.

accept_mode

string

Enable/disable accept mode.

Choices:

  • enable

  • disable

adv_interval

integer

Advertisement interval (1 - 255 seconds).

ignore_default_route

string

Enable/disable ignoring of default route when checking destination.

Choices:

  • enable

  • disable

preempt

string

Enable/disable preempt mode.

Choices:

  • enable

  • disable

priority

integer

Priority of the virtual router (1 - 255).

proxy_arp

list / elements=string

VRRP Proxy ARP configuration.

id

integer / required

ID.

ip

string

Set IP addresses of proxy ARP.

start_time

integer

Startup time (1 - 255 seconds).

status

string

Enable/disable this VRRP configuration.

Choices:

  • enable

  • disable

version

string

VRRP version.

Choices:

  • 2

  • 3

vrdst

string

Monitor the route to this destination.

vrdst_priority

integer

Priority of the virtual router when the virtual router destination becomes unreachable (0 - 254).

vrgrp

integer

VRRP group ID (1 - 65535).

vrid

integer / required

Virtual router identifier (1 - 255).

vrip

string

IP address of the virtual router.

vrrp_virtual_mac

string

Enable/disable use of virtual MAC for VRRP.

Choices:

  • enable

  • disable

wccp

string

Enable/disable WCCP on this interface. Used for encapsulated WCCP communication between WCCP clients and servers.

Choices:

  • enable

  • disable

weight

integer

Default weight for static routes (if route has no weight configured).

wins_ip

string

WINS server IP.

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

- collections:
  - fortinet.fortios
  connection: httpapi
  hosts: fortigate01
  vars:
    ansible_httpapi_port: 443
    ansible_httpapi_use_ssl: true
    ansible_httpapi_validate_certs: false
    vdom: root
  tasks:
  - name: fortios_system_interface
    fortios_system_interface:
      vdom: root
      state: present
      system_interface:
        algorithm: L4
        allowaccess: ping
        ap_discover: enable
        arpforward: enable
        auth_type: auto
        auto_auth_extension_device: disable
        bandwidth_measure_time: 0
        bfd: global
        bfd_desired_min_tx: 250
        bfd_detect_mult: 3
        bfd_required_min_rx: 250
        broadcast_forward: disable
        captive_portal: 0
        cli_conn_status: 0
        color: 0
        dedicated_to: none
        defaultgw: enable
        detected_peer_mtu: 0
        detectprotocol: ping
        device_identification: disable
        device_user_identification: enable
        devindex: 9
        dhcp_relay_agent_option: enable
        dhcp_relay_interface_select_method: auto
        dhcp_relay_service: disable
        dhcp_relay_type: regular
        dhcp_renew_time: 0
        disc_retry_timeout: 1
        disconnect_threshold: 0
        distance: 5
        dns_server_override: enable
        drop_fragment: disable
        drop_overlapped_fragment: disable
        estimated_downstream_bandwidth: 0
        estimated_upstream_bandwidth: 0
        explicit_ftp_proxy: disable
        explicit_web_proxy: disable
        external: disable
        fail_action_on_extender: soft-restart
        fail_alert_method: link-down
        fail_detect: disable
        fail_detect_option: link-down
        fortilink: disable
        fortilink_backup_link: 0
        fortilink_neighbor_detect: fortilink
        fortilink_split_interface: enable
        forward_domain: 0
        gwdetect: disable
        ha_priority: 1
        icmp_accept_redirect: enable
        icmp_send_redirect: enable
        ident_accept: disable
        idle_timeout: 0
        inbandwidth: 0
        ingress_spillover_threshold: 0
        internal: 0
        ip: 3.3.3.1 255.255.255.0
        ip_managed_by_fortiipam: disable
        ipmac: disable
        ips_sniffer_mode: disable
        ipunnumbered: 0.0.0.0
        l2forward: disable
        lacp_ha_slave: enable
        lacp_mode: active
        lacp_speed: slow
        lcp_echo_interval: 5
        lcp_max_echo_fails: 3
        link_up_delay: 50
        lldp_reception: vdom
        lldp_transmission: vdom
        managed_subnetwork_size: '256'
        management_ip: 0.0.0.0 0.0.0.0
        measured_downstream_bandwidth: 0
        measured_upstream_bandwidth: 0
        min_links: 1
        min_links_down: operational
        mode: static
        monitor_bandwidth: disable
        mtu: 1500
        mtu_override: disable
        name: port1
        ndiscforward: enable
        netbios_forward: disable
        netflow_sampler: disable
        outbandwidth: 0
        padt_retry_timeout: 1
        ping_serv_status: 0
        polling_interval: 20
        pppoe_unnumbered_negotiate: enable
        pptp_auth_type: auto
        pptp_client: disable
        pptp_server_ip: 0.0.0.0
        pptp_timeout: 0
        preserve_session_route: disable
        priority: 0
        priority_override: enable
        proxy_captive_portal: disable
        remote_ip: 0.0.0.0 0.0.0.0
        ring_rx: 0
        ring_tx: 0
        role: undefined
        sample_direction: both
        sample_rate: 2000
        secondary_ip: disable
        security_mac_auth_bypass: disable
        security_mode: none
        sflow_sampler: disable
        snmp_index: 3
        speed: auto
        spillover_threshold: 0
        src_check: enable
        status: up
        stpforward: disable
        stpforward_mode: rpl-all-ext-id
        subst: disable
        substitute_dst_mac: 00:00:00:00:00:00
        swc_first_create: 0
        swc_vlan: 0
        switch_controller_access_vlan: disable
        switch_controller_arp_inspection: disable
        switch_controller_dhcp_snooping: disable
        switch_controller_dhcp_snooping_option82: disable
        switch_controller_dhcp_snooping_verify_mac: disable
        switch_controller_feature: none
        switch_controller_igmp_snooping: disable
        switch_controller_igmp_snooping_fast_leave: disable
        switch_controller_igmp_snooping_proxy: disable
        switch_controller_iot_scanning: disable
        switch_controller_learning_limit: 0
        switch_controller_mgmt_vlan: 4094
        switch_controller_rspan_mode: disable
        switch_controller_source_ip: outbound
        tcp_mss: 0
        trust_ip6_1: ::/0
        trust_ip6_2: ::/0
        trust_ip6_3: ::/0
        trust_ip_1: 0.0.0.0 0.0.0.0
        trust_ip_2: 0.0.0.0 0.0.0.0
        trust_ip_3: 0.0.0.0 0.0.0.0
        type: physical
        vdom: root
        vindex: 0
        vlan_protocol: 8021q
        vlanforward: disable
        vlanid: 0
        vrf: 0
        vrrp_virtual_mac: disable
        wccp: disable
        weight: 0
        wins_ip: 0.0.0.0

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)