fortinet.fortimanager.fmgr_switchcontroller_managedswitch_ports module – Managed-switch port list.
Note
This module is part of the fortinet.fortimanager collection (version 2.3.0).
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.fortimanager
.
To use it in a playbook, specify: fortinet.fortimanager.fmgr_switchcontroller_managedswitch_ports
.
New in fortinet.fortimanager 2.0.0
Synopsis
This module is able to configure a FortiManager device.
Examples include all parameters and values which need to be adjusted to data sources before usage.
Parameters
Parameter |
Comments |
---|---|
The token to access FortiManager without using username and password. |
|
the parameter (adom) in requested url |
|
Only set to True when module schema diffs with FortiManager API structure, module continues to execute without validating parameters. Choices:
|
|
Enable/Disable logging for task. Choices:
|
|
Authenticate Ansible client with forticloud API access token. |
|
the parameter (managed-switch) in requested url |
|
The overridden method for the underlying Json RPC request. Choices:
|
|
The rc codes list with which the conditions to fail will be overriden. |
|
The rc codes list with which the conditions to succeed will be overriden. |
|
The directive to create, update or delete an object. Choices:
|
|
the top level parameters set |
|
Access mode of the port. Choices:
|
|
(list) no description |
|
LACP member select mode. Choices:
|
|
(list or str) Configure switch port tagged vlans |
|
Enable/disable all defined vlans on this port. Choices:
|
|
Trusted or untrusted dynamic ARP inspection. Choices:
|
|
no description |
|
Enable/disable Link Aggregation Group Choices:
|
|
Description for port. |
|
no description |
|
Circuit ID string. |
|
Remote ID string. |
|
DHCP snooping option 82 VLAN. |
|
Enable/disable allowance of DHCP with option-82 on untrusted interface. Choices:
|
|
Trusted or untrusted DHCP-snooping interface. Choices:
|
|
Configure discard mode for port. Choices:
|
|
no description Choices:
|
|
DSL policy configuration. |
|
Enable/disable this interface as an edge port, bridging connections between workstations and/or computers. Choices:
|
|
no description |
|
Switch controller export port to pool-list. |
|
FEC capable. |
|
State of forward error correction. Choices:
|
|
Period over which flap events are calculated |
|
Number of stage change events needed within flap-duration. |
|
Flap guard disabling protection |
|
Enable/disable flap guard. Choices:
|
|
Flow control direction. Choices:
|
|
(list) no description |
|
Set IGMP snooping mode for the physical port interface. Choices:
|
|
Enable/disable flooding of IGMP reports to this interface when igmp-snooping enabled. Choices:
|
|
Enable/disable flooding of IGMP reports to this interface when igmp-snooping enabled. Choices:
|
|
Enable/disable flooding of IGMP snooping traffic to this interface. Choices:
|
|
(list or str) no description |
|
Enable/disable IP source guard. Choices:
|
|
no description |
|
end Link Aggregation Control Protocol Choices:
|
|
Limit the number of dynamic MAC addresses on this Port |
|
no description Choices:
|
|
LLDP port TLV profile. |
|
LLDP transmit and receive status. Choices:
|
|
Enable/disable loop-guard on this interface, an STP optimization used to prevent network loops. Choices:
|
|
Loop-guard timeout |
|
Port/Trunk MAC. |
|
Matched interface tags in the dynamic port policy. |
|
Matched child policy in the dynamic port policy. |
|
Maximum size of LAG bundle |
|
Maximum tolerant missed heartbeats. |
|
Enable/disable flooding of IGMP snooping traffic to this interface. Choices:
|
|
Enable/disable multi-chassis link aggregation Choices:
|
|
no description |
|
no description |
|
Port behavior after it withdraws because of loss of control packets. Choices:
|
|
(list) no description |
|
Minimum size of LAG bundle |
|
LACP mode Choices:
|
|
no description |
|
Packet sampling rate |
|
Enable/disable packet sampling on this interface. Choices:
|
|
Configure ingress pause metering rate, in kbps |
|
Resume threshold for resuming traffic on ingress port. Choices:
|
|
no description |
|
PoE mode IEEE 802. |
|
Configure PoE port mode. Choices:
|
|
Configure PoE port power. Choices:
|
|
Configure PoE port priority. Choices:
|
|
Enable/disable PoE pre-standard detection. Choices:
|
|
no description |
|
Enable/disable PoE status. Choices:
|
|
Switch port name. |
|
Switch port name. |
|
Switch controller dynamic port policy from available options. |
|
Switch controller authentication policy to apply to this managed switch from available options. |
|
Algorithm for aggregate port selection. Choices:
|
|
Enable/disable PTP policy on this FortiSwitch port. Choices:
|
|
Switch controller QoS policy from available options. |
|
no description |
|
Enable/disable inter-operability with rapid PVST on this interface. Choices:
|
|
sFlow sample direction. Choices:
|
|
sFlow sampler counter polling interval |
|
sFlow sampler sample rate |
|
Enable/disable sFlow protocol on this interface. Choices:
|
|
Switch port admin status Choices:
|
|
Enable or disable sticky-mac on the interface. Choices:
|
|
Switch controller storm control policy from available options. |
|
Enable/disable STP BPDU guard on this interface. Choices:
|
|
BPDU Guard disabling protection |
|
Enable/disable STP root guard on this interface. Choices:
|
|
Enable/disable Spanning Tree Protocol Choices:
|
|
Trunk member. |
|
Interface type Choices:
|
|
(list or str) Configure switch port untagged vlans |
|
Assign switch ports to a VLAN. |
|
The adom to lock for FortiManager running in workspace mode, the value can be global and others including root. |
|
The maximum time in seconds to wait for other user to release the workspace lock. Default: |
Notes
Note
Running in workspace locking mode is supported in this FortiManager module, the top level parameters workspace_locking_adom and workspace_locking_timeout help do the work.
To create or update an object, use state present directive.
To delete an object, use state absent directive.
Normally, running one module can fail when a non-zero rc is returned. you can also override the conditions to fail or succeed with parameters rc_failed and rc_succeeded
Examples
- hosts: fortimanager-inventory
collections:
- fortinet.fortimanager
connection: httpapi
vars:
ansible_httpapi_use_ssl: True
ansible_httpapi_validate_certs: False
ansible_httpapi_port: 443
tasks:
- name: Managed-switch port list.
fmgr_switchcontroller_managedswitch_ports:
bypass_validation: False
workspace_locking_adom: <value in [global, custom adom including root]>
workspace_locking_timeout: 300
rc_succeeded: [0, -2, -3, ...]
rc_failed: [-2, -3, ...]
adom: <your own value>
managed-switch: <your own value>
state: <value in [present, absent]>
switchcontroller_managedswitch_ports:
allowed-vlans: <list or string>
allowed-vlans-all: <value in [disable, enable]>
arp-inspection-trust: <value in [untrusted, trusted]>
bundle: <value in [disable, enable]>
description: <string>
dhcp-snoop-option82-trust: <value in [disable, enable]>
dhcp-snooping: <value in [trusted, untrusted]>
discard-mode: <value in [none, all-untagged, all-tagged]>
edge-port: <value in [disable, enable]>
igmp-snooping: <value in [disable, enable]>
igmps-flood-reports: <value in [disable, enable]>
igmps-flood-traffic: <value in [disable, enable]>
lacp-speed: <value in [slow, fast]>
learning-limit: <integer>
lldp-profile: <string>
lldp-status: <value in [disable, rx-only, tx-only, ...]>
loop-guard: <value in [disabled, enabled]>
loop-guard-timeout: <integer>
max-bundle: <integer>
mclag: <value in [disable, enable]>
member-withdrawal-behavior: <value in [forward, block]>
members: <list or string>
min-bundle: <integer>
mode: <value in [static, lacp-passive, lacp-active]>
poe-pre-standard-detection: <value in [disable, enable]>
poe-status: <value in [disable, enable]>
port-name: <string>
port-owner: <string>
port-security-policy: <string>
port-selection-criteria: <value in [src-mac, dst-mac, src-dst-mac, ...]>
qos-policy: <string>
sample-direction: <value in [rx, tx, both]>
sflow-counter-interval: <integer>
sflow-sample-rate: <integer>
sflow-sampler: <value in [disabled, enabled]>
stp-bpdu-guard: <value in [disabled, enabled]>
stp-bpdu-guard-timeout: <integer>
stp-root-guard: <value in [disabled, enabled]>
stp-state: <value in [disabled, enabled]>
type: <value in [physical, trunk]>
untagged-vlans: <list or string>
vlan: <string>
export-to-pool-flag: <integer>
mac-addr: <string>
packet-sample-rate: <integer>
packet-sampler: <value in [disabled, enabled]>
sticky-mac: <value in [disable, enable]>
storm-control-policy: <string>
dot1x-enable: <value in [disable, enable]>
max-miss-heartbeats: <integer>
access-mode: <value in [normal, nac, dynamic, ...]>
ip-source-guard: <value in [disable, enable]>
mclag-icl-port: <integer>
p2p-port: <integer>
aggregator-mode: <value in [bandwidth, count]>
rpvst-port: <value in [disabled, enabled]>
flow-control: <value in [disable, tx, rx, ...]>
media-type: <string>
pause-meter: <integer>
pause-meter-resume: <value in [25%, 50%, 75%]>
trunk-member: <integer>
fec-capable: <integer>
fec-state: <value in [disabled, cl74, cl91]>
matched-dpp-intf-tags: <string>
matched-dpp-policy: <string>
port-policy: <string>
status: <value in [down, up]>
dsl-profile: <string>
flap-duration: <integer>
flap-rate: <integer>
flap-timeout: <integer>
flapguard: <value in [disable, enable]>
interface-tags: <list or string>
poe-max-power: <string>
poe-standard: <string>
igmp-snooping-flood-reports: <value in [disable, enable]>
mcast-snooping-flood-traffic: <value in [disable, enable]>
link-status: <value in [down, up]>
poe-mode-bt-cabable: <integer>
poe-port-mode: <value in [ieee802-3af, ieee802-3at, ieee802-3bt]>
poe-port-power: <value in [normal, perpetual, perpetual-fast]>
poe-port-priority: <value in [critical-priority, high-priority, low-priority, ...]>
acl-group: <list or string>
dhcp-snoop-option82-override:
-
circuit-id: <string>
remote-id: <string>
vlan-name: <string>
fortiswitch-acls: <list or integer>
isl-peer-device-sn: <string>
authenticated-port: <integer>
encrypted-port: <integer>
ptp-status: <value in [disable, enable]>
restricted-auth-port: <integer>
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The result of the request. Returned: always |
|
The full url requested. Returned: always Sample: |
|
The status of api request. Returned: always Sample: |
|
The api response. Returned: always |
|
The descriptive message of the api response. Returned: always Sample: |
|
The information of the target system. Returned: always |
|
The status the request. Returned: always Sample: |
|
Warning if the parameters used in the playbook are not supported by the current FortiManager version. Returned: complex |