f5networks.f5_modules.bigip_interface module – Module to manage BIG-IP physical interfaces.
Note
This module is part of the f5networks.f5_modules collection (version 1.21.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 f5networks.f5_modules
.
To use it in a playbook, specify: f5networks.f5_modules.bigip_interface
.
New in f5networks.f5_modules 1.0.0
Synopsis
Module to manage BIG-IP physical interfaces.
Parameters
Parameter |
Comments |
---|---|
Enables or disables bundle capability. This option is only supported on select hardware platforms and interfaces. Attempting to enable this option on a Choices:
|
|
Sets the bundle speed, which is applicable only when the bundle is This option is only supported on selected hardware platforms and interfaces. Attempting to enable this option on a Choices:
|
|
User defined description. |
|
Specifies the current status of the interface. When When Choices:
|
|
Specifies how the system controls the sending of PAUSE frames. When When When When (none), the flow control is disabled on the interface. Choices:
|
|
Enables or disables forcing of gigabit fiber media. When When Choices:
|
|
Enables or disables IEEE 802.3bm Clause 91 Reed-Solomon Forward Error Correction on 100G interfaces. Not valid for LR4 media. This option is only supported on selected hardware platforms and interfaces. Attempting to enable this option on a Choices:
|
|
Specifies LLDP settings on an interface level. When When When When Choices:
|
|
Specifies the content of an LLDP message being sent or received. Each LLDP attribute specified with this setting is optional and is in the form of Type, Length, Value (TLV). The three mandatory TLVs not taken into account when calculating this value are: The optional attributes that are available have a specific TLV numeric value mapped to them. The The The The The The The The The The The The The The Setting Setting |
|
Specifies the settings for a fixed (non-pluggable) interface. Use this option only with a combo port to specify the media type for the fixed interface, when it is not the preferred port. Choices:
|
|
Specifies the settings for an SFP (pluggable) interface. Use this option only with a combo port to specify the media type for the SFP interface, when it is not the preferred port. Choices:
|
|
Specifies the name of the interface to manage. |
|
Specifies the operation mode. Choices:
|
|
Indicates which side of a combo port the interface uses, if both sides have the potential for an external link. The default value for a combo port is sfp. Do not use this option for non-combo ports. Choices:
|
|
A dict object containing connection details. |
|
Configures the auth provider for to obtain authentication tokens from the remote device. This option is really used when working with BIG-IQ devices. |
|
If You may omit this option by setting the environment variable Previously used variable Choices:
|
|
The password for the user account used to connect to the BIG-IP. You may omit this option by setting the environment variable |
|
The BIG-IP host. You may omit this option by setting the environment variable |
|
The BIG-IP server port. You may omit this option by setting the environment variable Default: |
|
Specifies the timeout in seconds for communicating with the network device for either connecting or sending commands. If the timeout is exceeded before the operation is completed, the module will error. |
|
Configures the transport connection to use when connecting to the remote device. Choices:
|
|
The username to connect to the BIG-IP with. This user must have administrative privileges on the device. You may omit this option by setting the environment variable |
|
If You may omit this option by setting the environment variable Choices:
|
|
Specifies sFlow settings for the interface. |
|
Specifies the maximum interval between two pollings, in seconds. For this setting to take effect, The valid range is 0 - 4294967295. |
|
Specifies whether the global interface When Choices:
|
|
Enables or disables STP. Choices:
|
|
Sets STP automatic edge port detection for the interface. When When Choices:
|
|
Specifies whether the interface connects to an end station instead of another spanning tree bridge. Choices:
|
|
Specifies the STP link type for the interface. Choices:
|
Notes
Note
For more information on using Ansible to manage F5 Networks devices see https://www.ansible.com/integrations/networks/f5.
Requires BIG-IP software version >= 12.
The F5 modules only manipulate the running configuration of the F5 product. To ensure that BIG-IP specific configuration persists to disk, be sure to include at least one task that uses the f5networks.f5_modules.bigip_config module to save the running configuration. Refer to the module’s documentation for the correct usage of the module to save your running configuration.
Examples
- name: Update Interface Settings
bigip_interface:
name: 1.1
stp: yes
stp_auto_edge_port: no
stp_edge_port: yes
stp_link_type: shared
description: my description
flow_control: tx
lldp_admin: txrx
lldp_tlvmap: 8
force_gigabit_fiber: no
sflow:
- poll_interval: 10
- poll_interval_global: no
provider:
password: secret
server: lb.mydomain.com
user: admin
delegate_to: localhost
- name: Disable Interface
bigip_interface:
name: 1.1
enabled: no
provider:
password: secret
server: lb.mydomain.com
user: admin
delegate_to: localhost
- name: Change sflow interface settings
bigip_interface:
name: 1.1
sflow:
- poll_interval: 0
- poll_interval_global: yes
provider:
password: secret
server: lb.mydomain.com
user: admin
delegate_to: localhost
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Enables or disables bundle capability. Returned: changed Sample: |
|
The bundle speed. Returned: changed Sample: |
|
User defined description. Returned: changed Sample: |
|
The current status of the interface. Returned: changed Sample: |
|
Specifies how the system controls the sending of PAUSE frames. Returned: changed Sample: |
|
Enables or disables forcing of gigabit fiber media. Returned: changed Sample: |
|
Enables or disables Forward Error Correction. Returned: changed Sample: |
|
The LLDP settings on an interface level. Returned: changed Sample: |
|
The content of an LLDP message being sent or received. Returned: changed Sample: |
|
The settings for a fixed interface. Returned: changed Sample: |
|
The settings for a SFP interface. Returned: changed Sample: |
|
The operation mode. Returned: changed Sample: |
|
The side of a combo port the interface uses. Returned: changed Sample: |
|
Specifies sFlow settings for the interface. Returned: changed Sample: |
|
The maximum interval in seconds between two pollings. Returned: changed Sample: |
|
The global sFlow settings override. Returned: changed Sample: |
|
Enables or disables STP. Returned: changed Sample: |
|
Sets STP automatic edge port detection for the interface. Returned: changed Sample: |
|
Specifies whether the interface connects to an end station instead of another spanning tree bridge. Returned: changed Sample: |
|
The STP link type for the interface. Returned: changed Sample: |