:source: fortiswitch_switch_physical_port.py :orphan: .. fortiswitch_switch_physical_port: fortiswitch_switch_physical_port -- Physical port specific configuration 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 physical_port 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_physical_port v7.0.0 -> 7.4.3

Parameters ---------- .. raw:: html

Examples -------- .. code-block:: yaml+jinja - name: Physical port specific configuration. fortinet.fortiswitch.fortiswitch_switch_physical_port: state: "present" switch_physical_port: cdp_status: "disable" description: "" dmi_status: "enable" eee_tx_idle_time: "6" eee_tx_wake_time: "7" egress_drop_mode: "enabled" energy_efficient_ethernet: "enable" flap_duration: "10" flap_rate: "11" flap_timeout: "12" flap_trig: "13" flapguard: "enabled" flapguard_state: "" flow_control: "disable" fortilink_p2p: "enable" l2_learning: "enabled" l2_sa_unknown: "forward" link_status: "" lldp_profile: " (source switch.lldp.profile.name)" lldp_status: "disable" loopback: "local" macsec_pae_mode: "none" macsec_profile: " (source switch.macsec.profile.name)" max_frame_size: "26" medium: "fiber-preferred" name: "default_name_28" owning_interface: "" pause_meter_rate: "30" pause_resume: "75%" poe_port_mode: "IEEE802_3AF" poe_port_priority: "low-priority" poe_status: "enable" port_index: "35" priority_based_flow_control: "disable" qsfp_low_power_mode: "enabled" security_mode: "none" speed: "auto" status: "up" storm_control: broadcast: "enable" burst_size_level: "43" rate: "44" unknown_multicast: "enable" unknown_unicast: "enable" storm_control_mode: "global" 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.