fortios_system_virtual_switch
Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS
Collection: fortinet.fortios
Full Name: fortinet.fortios.fortios_system_virtual_switch
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_token | str | |||
| enable_log | bool | false | ||
| member_path | str | |||
| member_state | str | |||
| state | str | yes | ||
| system_virtual_switch | dict | |||
| vdom | str | root |
Example
yaml
# Define these inventory variables: fortios_access_token.
- fortinet.fortios.fortios_system_virtual_switch:
access_token: '{{ fortios_access_token }}'
state: present
system_virtual_switch:
name: default_name_3
port:
- mediatype: cfp2-sr10
name: default_name_8 (source system.interface.name)
speed: auto
status: up
span: disable
span_direction: rx
vlan: "0"
vdom: root
name: Configure virtual hardware switch interfaces.