fortinet / fortinet.fortios / 1.1.7 / module / fortios_router_rip Configure RIP in Fortinet's FortiOS and FortiGate. | "added in version" 2.8 of fortinet.fortios" Authors: Link Zheng (@chillancezen), Jie Xue (@JieX19), Hongbin Lu (@fgtdev-hblu), Frank Shen (@frankshen01), Miguel Angel Munoz (@mamunozgonzalez), Nicolas Thomas (@thomnico) preview | supported by communityfortinet.fortios.fortios_router_rip (1.1.7) — module
Install with ansible-galaxy collection install fortinet.fortios:==1.1.7
collections: - name: fortinet.fortios version: 1.1.7
This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify router feature and rip category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.4.0
- hosts: fortigates collections: - fortinet.fortios connection: httpapi vars: vdom: "root" ansible_httpapi_use_ssl: yes ansible_httpapi_validate_certs: no ansible_httpapi_port: 443 tasks: - name: Configure RIP. fortios_router_rip: vdom: "{{ vdom }}" router_rip: default_information_originate: "enable" default_metric: "4" distance: - access_list: "<your_own_value> (source router.access-list.name)" distance: "7" id: "8" prefix: "<your_own_value>" distribute_list: - direction: "in" id: "12" interface: "<your_own_value> (source system.interface.name)" listname: "<your_own_value> (source router.access-list.name router.prefix-list.name)" status: "enable" garbage_timer: "16" interface: - auth_keychain: "<your_own_value> (source router.key-chain.name)" auth_mode: "none" auth_string: "<your_own_value>" flags: "21" name: "default_name_22 (source system.interface.name)" receive_version: "1" send_version: "1" send_version2_broadcast: "disable" split_horizon: "poisoned" split_horizon_status: "enable" max_out_metric: "28" neighbor: - id: "30" ip: "<your_own_value>" network: - id: "33" prefix: "<your_own_value>" offset_list: - access_list: "<your_own_value> (source router.access-list.name)" direction: "in" id: "38" interface: "<your_own_value> (source system.interface.name)" offset: "40" status: "enable" passive_interface: - name: "default_name_43 (source system.interface.name)" recv_buffer_size: "44" redistribute: - metric: "46" name: "default_name_47" routemap: "<your_own_value> (source router.route-map.name)" status: "enable" timeout_timer: "50" update_timer: "51" version: "1"
vdom: default: root description: - 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. type: str router_rip: default: null description: - Configure RIP. suboptions: default_information_originate: choices: - enable - disable description: - Enable/disable generation of default route. type: str default_metric: description: - Default metric. type: int distance: description: - distance suboptions: access_list: description: - Access list for route destination. Source router.access-list.name. type: str distance: description: - Distance (1 - 255). type: int id: description: - Distance ID. required: true type: int prefix: description: - Distance prefix. type: str type: list distribute_list: description: - Distribute list. suboptions: direction: choices: - in - out description: - Distribute list direction. type: str id: description: - Distribute list ID. required: true type: int interface: description: - Distribute list interface name. Source system.interface.name. type: str listname: description: - Distribute access/prefix list name. Source router.access-list.name router.prefix-list.name. type: str status: choices: - enable - disable description: - status type: str type: list garbage_timer: description: - Garbage timer in seconds. type: int interface: description: - RIP interface configuration. suboptions: auth_keychain: description: - Authentication key-chain name. Source router.key-chain.name. type: str auth_mode: choices: - none - text - md5 description: - Authentication mode. type: str auth_string: description: - Authentication string/password. type: str flags: description: - flags type: int name: description: - Interface name. Source system.interface.name. required: true type: str receive_version: choices: - 1 - 2 description: - Receive version. type: str send_version: choices: - 1 - 2 description: - Send version. type: str send_version2_broadcast: choices: - disable - enable description: - Enable/disable broadcast version 1 compatible packets. type: str split_horizon: choices: - poisoned - regular description: - Enable/disable split horizon. type: str split_horizon_status: choices: - enable - disable description: - Enable/disable split horizon. type: str type: list max_out_metric: description: - Maximum metric allowed to output(0 means "not set"). type: int neighbor: description: - neighbor suboptions: id: description: - Neighbor entry ID. required: true type: int ip: description: - IP address. type: str type: list network: description: - network suboptions: id: description: - Network entry ID. required: true type: int prefix: description: - Network prefix. type: str type: list offset_list: description: - Offset list. suboptions: access_list: description: - Access list name. Source router.access-list.name. type: str direction: choices: - in - out description: - Offset list direction. type: str id: description: - Offset-list ID. required: true type: int interface: description: - Interface name. Source system.interface.name. type: str offset: description: - offset type: int status: choices: - enable - disable description: - status type: str type: list passive_interface: description: - Passive interface configuration. suboptions: name: description: - Passive interface name. Source system.interface.name. required: true type: str type: list recv_buffer_size: description: - Receiving buffer size. type: int redistribute: description: - Redistribute configuration. suboptions: metric: description: - Redistribute metric setting. type: int name: description: - Redistribute name. required: true type: str routemap: description: - Route map name. Source router.route-map.name. type: str status: choices: - enable - disable description: - status type: str type: list timeout_timer: description: - Timeout timer in seconds. type: int update_timer: description: - Update timer in seconds. type: int version: choices: - 1 - 2 description: - RIP version. type: str type: dict access_token: description: - Token-based authentication. Generated from GUI of Fortigate. required: false type: str
build: description: Build number of the fortigate image returned: always sample: '1547' type: str http_method: description: Last method used to provision the content into FortiGate returned: always sample: PUT type: str http_status: description: Last result given by FortiGate on last operation applied returned: always sample: '200' type: str mkey: description: Master key (id) used in the last call to FortiGate returned: success sample: id type: str name: description: Name of the table used to fulfill the request returned: always sample: urlfilter type: str path: description: Path of the table used to fulfill the request returned: always sample: webfilter type: str revision: description: Internal revision number returned: always sample: 17.0.2.10658 type: str serial: description: Serial number of the unit returned: always sample: FGVMEVYYQT3AB5352 type: str status: description: Indication of the operation's result returned: always sample: success type: str vdom: description: Virtual domain used returned: always sample: root type: str version: description: Version of the FortiGate returned: always sample: v5.6.3 type: str