fortinet.fortios.fortios_extender_controller_extender – Extender controller configuration 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_extender_controller_extender.

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 extender_controller feature and extender 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

extender_controller_extender

dictionary

Extender controller configuration.

aaa_shared_secret

string

AAA shared secret.

access_point_name

string

Access point name(APN).

admin

string

FortiExtender Administration (enable or disable).

Choices:

  • disable

  • discovered

  • enable

at_dial_script

string

Initialization AT commands specific to the MODEM.

authorized

string

FortiExtender Administration (enable or disable).

Choices:

  • disable

  • enable

billing_start_day

integer

Billing start day.

cdma_aaa_spi

string

CDMA AAA SPI.

cdma_ha_spi

string

CDMA HA SPI.

cdma_nai

string

NAI for CDMA MODEMS.

conn_status

integer

Connection status.

controller_report

dictionary

FortiExtender controller report configuration.

interval

integer

Controller report interval.

signal_threshold

integer

Controller report signal threshold.

status

string

FortiExtender controller report status.

Choices:

  • disable

  • enable

description

string

Description.

dial_mode

string

Dial mode (dial-on-demand or always-connect).

Choices:

  • dial-on-demand

  • always-connect

dial_status

integer

Dial status.

ext_name

string

FortiExtender name.

ha_shared_secret

string

HA shared secret.

id

string / required

FortiExtender serial number.

ifname

string

FortiExtender interface name. Source system.interface.name.

initiated_update

string

Allow/disallow network initiated updates to the MODEM.

Choices:

  • enable

  • disable

login_password

string

FortiExtender login password.

mode

string

FortiExtender mode.

Choices:

  • standalone

  • redundant

modem1

dictionary

Configuration options for modem 1.

auto_switch

dictionary

FortiExtender auto switch configuration.

dataplan

string

Automatically switch based on data usage.

Choices:

  • disable

  • enable

disconnect

string

Auto switch by disconnect.

Choices:

  • disable

  • enable

disconnect_period

integer

Automatically switch based on disconnect period.

disconnect_threshold

integer

Automatically switch based on disconnect threshold.

signal

string

Automatically switch based on signal strength.

Choices:

  • disable

  • enable

switch_back

string

Auto switch with switch back multi-options.

Choices:

  • time

  • timer

switch_back_time

string

Automatically switch over to preferred SIM/carrier at a specified time in UTC (HH:MM).

switch_back_timer

integer

Automatically switch over to preferred SIM/carrier after the given time (3600 - 2147483647 sec).

conn_status

integer

Connection status.

default_sim

string

Default SIM selection.

Choices:

  • sim1

  • sim2

  • carrier

  • cost

gps

string

FortiExtender GPS enable/disable.

Choices:

  • disable

  • enable

ifname

string

FortiExtender interface name. Source system.interface.name.

preferred_carrier

string

Preferred carrier.

redundant_intf

string

Redundant interface.

redundant_mode

string

FortiExtender mode.

Choices:

  • disable

  • enable

sim1_pin

string

SIM

Choices:

  • disable

  • enable

sim1_pin_code

string

SIM

sim2_pin

string

SIM

Choices:

  • disable

  • enable

sim2_pin_code

string

SIM

modem2

dictionary

Configuration options for modem 2.

auto_switch

dictionary

FortiExtender auto switch configuration.

dataplan

string

Automatically switch based on data usage.

Choices:

  • disable

  • enable

disconnect

string

Auto switch by disconnect.

Choices:

  • disable

  • enable

disconnect_period

integer

Automatically switch based on disconnect period.

disconnect_threshold

integer

Automatically switch based on disconnect threshold.

signal

string

Automatically switch based on signal strength.

Choices:

  • disable

  • enable

switch_back

string

Auto switch with switch back multi-options.

Choices:

  • time

  • timer

switch_back_time

string

Automatically switch over to preferred SIM/carrier at a specified time in UTC (HH:MM).

switch_back_timer

integer

Automatically switch over to preferred SIM/carrier after the given time (3600 - 2147483647 sec).

conn_status

integer

Connection status.

default_sim

string

Default SIM selection.

Choices:

  • sim1

  • sim2

  • carrier

  • cost

gps

string

FortiExtender GPS enable/disable.

Choices:

  • disable

  • enable

ifname

string

FortiExtender interface name. Source system.interface.name.

preferred_carrier

string

Preferred carrier.

redundant_intf

string

Redundant interface.

redundant_mode

string

FortiExtender mode.

Choices:

  • disable

  • enable

sim1_pin

string

SIM

Choices:

  • disable

  • enable

sim1_pin_code

string

SIM

sim2_pin

string

SIM

Choices:

  • disable

  • enable

sim2_pin_code

string

SIM

modem_passwd

string

MODEM password.

modem_type

string

MODEM type (CDMA, GSM/LTE or WIMAX).

Choices:

  • cdma

  • gsm/lte

  • wimax

multi_mode

string

MODEM mode of operation(3G,LTE,etc).

Choices:

  • auto

  • auto-3g

  • force-lte

  • force-3g

  • force-2g

name

string

FortiExtender entry name.

ppp_auth_protocol

string

PPP authentication protocol (PAP,CHAP or auto).

Choices:

  • auto

  • pap

  • chap

ppp_echo_request

string

Enable/disable PPP echo request.

Choices:

  • enable

  • disable

ppp_password

string

PPP password.

ppp_username

string

PPP username.

primary_ha

string

Primary HA.

quota_limit_mb

integer

Monthly quota limit (MB).

redial

string

Number of redials allowed based on failed attempts.

Choices:

  • none

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10

redundant_intf

string

Redundant interface.

roaming

string

Enable/disable MODEM roaming.

Choices:

  • enable

  • disable

role

string

FortiExtender work role(Primary, Secondary, None).

Choices:

  • none

  • primary

  • secondary

secondary_ha

string

Secondary HA.

sim_pin

string

SIM PIN.

vdom

integer

VDOM

wimax_auth_protocol

string

WiMax authentication protocol(TLS or TTLS).

Choices:

  • tls

  • ttls

wimax_carrier

string

WiMax carrier.

wimax_realm

string

WiMax realm.

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

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_extender_controller_extender
    fortios_extender_controller_extender:
      vdom: root
      state: present
      extender_controller_extender:
        admin: disable
        billing_start_day: 1
        conn_status: 0
        dial_mode: always-connect
        dial_status: 0
        ext_name: '332'
        id: '1'
        initiated_update: disable
        mode: standalone
        modem_type: gsm/lte
        multi_mode: auto
        ppp_auth_protocol: auto
        ppp_echo_request: disable
        quota_limit_mb: 0
        redial: none
        roaming: disable
        role: primary
        vdom: 0
        wimax_auth_protocol: tls

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)