:source: fortiswitch_switch_security_feature.py
:orphan:
.. fortiswitch_switch_security_feature:
fortiswitch_switch_security_feature -- Switch security feature control nobs in Fortinet's FortiSwitch
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module is able to configure a FortiSwitch device by allowing the user to set and modify switch feature and security_feature category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v7.0.0
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible>=2.16
FortiSwitch Version Compatibility
---------------------------------
.. raw:: html
| Supported Version Ranges |
| fortiswitch_switch_security_feature |
v7.0.0 -> 7.4.3 |
Parameters
----------
.. raw:: html
- enable_log - Enable/Disable logging for task. type: bool required: false default: False
- member_path - Member attribute path to operate on. type: str
- member_state - Add or delete a member under specified attribute path. type: str choices: present, absent
- switch_security_feature - Switch security feature control nobs. type: dict
- allow_mcast_sa - Ethernet packet whose source-mac is multicast. type: str choices: disable, enable
- allow_sa_mac_all_zero - Ethernet packet whose source-mac is all zero"s. type: str choices: disable, enable
- macsa_eq_macda - Packet with source MAC equal to Destination MAC. type: str choices: disable, enable
- sip_eq_dip - TCP packet with Source IP equal to Destination IP. type: str choices: disable, enable
- tcp_flag - DoS attack checking for TCP flags. type: str choices: disable, enable
- tcp_flag_FUP - TCP packet with FIN, URG, PSH bit enable and sequence number is zero. type: str choices: disable, enable
- tcp_flag_SF - TCP packet with SYN and FIN bit enable. type: str choices: disable, enable
- tcp_hdr_partial - TCP packet with partial header. type: str choices: disable, enable
- tcp_port_eq - TCP packet with Source and destination TCP port equal. type: str choices: disable, enable
- udp_port_eq - IP packet with source and destination UDP port equal. type: str choices: disable, enable
- v4_first_frag - DoS attack checking for IPv4 first fragment. type: str choices: disable, enable
Examples
--------
.. code-block:: yaml+jinja
- name: Switch security feature control nobs.
fortinet.fortiswitch.fortiswitch_switch_security_feature:
switch_security_feature:
allow_mcast_sa: "disable"
allow_sa_mac_all_zero: "disable"
macsa_eq_macda: "disable"
sip_eq_dip: "disable"
tcp_flag: "disable"
tcp_flag_FUP: "disable"
tcp_flag_SF: "disable"
tcp_hdr_partial: "disable"
tcp_port_eq: "disable"
udp_port_eq: "disable"
v4_first_frag: "disable"
Return Values
-------------
Common return values are documented: https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values, the following are the fields unique to this module:
.. raw:: html
- build - Build number of the fortiSwitch image returned: always type: str sample: 1547
- http_method - Last method used to provision the content into FortiSwitch returned: always type: str sample: PUT
- http_status - Last result given by FortiSwitch on last operation applied returned: always type: str sample: 200
- mkey - Master key (id) used in the last call to FortiSwitch returned: success type: str sample: id
- name - Name of the table used to fulfill the request returned: always type: str sample: urlfilter
- path - Path of the table used to fulfill the request returned: always type: str sample: webfilter
- serial - Serial number of the unit returned: always type: str sample: FS1D243Z13000122
- status - Indication of the operation's result returned: always type: str sample: success
- version - Version of the FortiSwitch returned: always type: str sample: v7.0.0
Status
------
- This module is not guaranteed to have a backwards compatible interface.
Authors
-------
- Link Zheng (@chillancezen)
- Jie Xue (@JieX19)
- Hongbin Lu (@fgtdev-hblu)
- Frank Shen (@frankshen01)
- Miguel Angel Munoz (@mamunozgonzalez)
.. hint::
If you notice any issues in this documentation, feel free to create a pull request to improve it.