wojtek0806 / wojtek0806.f5os / 0.3.0 / module / f5os_lag Manage LAG interfaces on F5OS based systems | "added in version" 1.0.0 of wojtek0806.f5os" Authors: Ravinder Reddy (@chinthalapalli), Wojciech Wypior (@wojtek0806)wojtek0806.f5os.f5os_lag (0.3.0) — module
Install with ansible-galaxy collection install wojtek0806.f5os:==0.3.0
collections: - name: wojtek0806.f5os version: 0.3.0
Manage LAG interfaces on F5OS systems like VELOS partitions or rSeries platforms.
- hosts: all collections: - f5networks.f5os connection: httpapi vars: ansible_host: "lb.mydomain.com" ansible_user: "admin" ansible_httpapi_password: "secret" ansible_network_os: f5networks.f5os.f5os ansible_httpapi_use_ssl: yes tasks: - name: Creating VLAN444 f5os_vlan: name: vlan-444 vlan_id: 444 - name: Creating VLAN555 f5os_vlan: name: vlan-555 vlan_id: 555 - name: Attach Trunk-vlans to LAG to interface f5os_lag: name: "Arista" lag_type: "lacp" trunk_vlans: [444] state: present - name: Modify Vlans to LAG interface f5os_lag: name: "Arista" trunk_vlans: [444,555] state: present - name: Add interfaces to LAG on Velos Partition f5os_lag: name: "Arista" config_members: - "1/1.0" state: present - name: Add interfaces to LAG on rSeries Platform f5os_lag: name: "Arista" config_members: - "1.0" state: present - name: Delete LAG interface f5os_lag: name: "Arista" trunk_vlans: [444,555] state: absent
name: description: - Name of the interface to configure. required: true type: str state: choices: - present - absent default: present description: - If C(present), creates the specified object if it does not exist, or updates the existing object. - If C(absent), deletes the object if it exists. type: str lag_type: choices: - lacp - static description: - The LAG type of the interface to be created. - Parameter is required when creating new LAG interface. type: str native_vlan: description: - Configures the VLAN ID to associate with the Link Aggregation Group. - The C(native_vlans) parameter is used for untagged traffic. type: int trunk_vlans: description: - Configures multiple VLAN IDs to associate with the Link Aggregation Group. - The C(trunk_vlans) parameter is used for tagged traffic. - The order of these VLANs is ignored, the module orders the VLANs automatically. elements: int type: list config_members: description: - Configures the list of interfaces to be grouped for the Link Aggregation Group (LAG). - For VELOS partitions blade/port interface format is required e.g. 1/1.0 elements: str type: list
config_members: description: The list of interfaces to be grouped for the Link Aggregation Group returned: changed sample: - '1.0' - '2.0' type: list lag_type: description: The LAG type of the interface to be created. returned: changed sample: static type: str name: description: Name of the partition LAG interface to configure returned: changed sample: new_name type: str native_vlan: description: Native VLAN to attach to LAG interface returned: changed sample: 222 type: int trunk_vlans: description: Trunk VLANs to attach to LAG interface returned: changed sample: - 444 - 555 type: list