velos_partition_vlan – Manage VLANs on VELOS chassis partitions

New in version 1.3.0.

DEPRECATED

Removed in F5 BIGIP Collection version:
 2.0.0
Why:All VELOS related modules have been moved to a dedicated collection for managing F5OS based devices.
Alternative:Use f5networks.f5os.f5os_vlan instead.

Synopsis

  • Manage VLANs on VELOS chassis partitions.

Parameters

Parameter Choices/Defaults Configuration Comments
name
string
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 vlan_id.
state
string
    Choices:
  • present ←
  • absent
The partition VLAN state.
If present, creates the specified VLAN if it does not exist, or updates the existing VLAN.
If absent, deletes the VLAN if it exists.
vlan_id
integer / required
The ID for the VLAN.
Valid value range is from 0 to 4095.

Examples

- 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

Return Values

The following are the fields unique to this module:

Key Returned Description
name
string
changed
The name of the VLAN.

Sample:
new_name
vlan_id
integer
changed
The ID of the VLAN.

Sample:
1234


Status

  • This module will be removed in version 2.0.0. [deprecated]
  • For more information see DEPRECATED.

Authors

  • Wojciech Wypior (@wojtek0806)