f5networks / f5networks.f5_bigip / 1.13.0 / module / velos_partition_vlan
Removed in 2.0.0
Reason:All VELOS related modules have been moved to a dedicated collection for managing F5OS based devices. | Alternative:Use M(f5networks.f5os.f5os_vlan) instead.
Manage VLANs on VELOS chassis partitions
| "added in version" 1.3.0 of f5networks.f5_bigip"
Authors: Wojciech Wypior (@wojtek0806)
Install with ansible-galaxy collection install f5networks.f5_bigip:==1.13.0
collections: - name: f5networks.f5_bigip version: 1.13.0
Manage VLANs on VELOS chassis partitions.
- hosts: all collections: - f5networks.f5_bigip connection: httpapi vars: ansible_host: "lb.mydomain.com" ansible_user: "admin" ansible_httpapi_password: "secret" ansible_network_os: f5networks.f5_bigip.velos ansible_httpapi_use_ssl: yes tasks: - name: Create a vlan on partition velos_partition_vlan: name: foo vlan_id: 3212 - name: Update name of a vlan on partition velos_partition_vlan: name: changed_this vlan_id: 3212 - name: Delete vlan on partition velos_partition_vlan: vlan_id: 3212 state: absent
name: description: - Specifies the name of the VLAN to configure on the chassis partition. - This parameter is optional, if it is not provided, the parameter name is derived from C(vlan_id). type: str state: choices: - present - absent default: present description: - The partition VLAN state. - If C(present), creates the specified VLAN if it does not exist, or updates the existing VLAN. - If C(absent), deletes the VLAN if it exists. type: str vlan_id: description: - The ID for the VLAN. - Valid value range is from C(0) to C(4095). required: true type: int
name: description: The name of the VLAN. returned: changed sample: new_name type: str vlan_id: description: The ID of the VLAN. returned: changed sample: 1234 type: int