PARALLAX

fortios_switch_controller_vlan_policy

Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS

Collection: fortinet.fortios

Full Name: fortinet.fortios.fortios_switch_controller_vlan_policy

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

NameTypeRequiredDefaultDescription
access_tokenstr
enable_logboolfalse
member_pathstr
member_statestr
statestryes
switch_controller_vlan_policydict
vdomstrroot

Example

yaml
# Define these inventory variables: fortios_access_token.
- fortinet.fortios.fortios_switch_controller_vlan_policy:
    access_token: '{{ fortios_access_token }}'
    state: present
    switch_controller_vlan_policy:
        allowed_vlans_all: enable
        discard_mode: none
        name: default_name_9
    vdom: root
  name: Configure VLAN policy to be applied on the managed FortiSwitch ports through dynamic-port-policy.
Search
    ↑ ↓ move↵ openesc close