Deprecated

Removed in 2.0.0

i

Reason:All VELOS related modules have been moved to a dedicated collection for managing F5OS based devices. | Alternative:Use M(f5networks.f5os.f5os_interface) instead.

f5networks.f5_bigip.velos_partition_interface (1.13.0) — module

Manage network interfaces on VELOS chassis partitions

| "added in version" 1.4.0 of f5networks.f5_bigip"

Authors: Ravinder Reddy (@chinthalapalli)

Install collection

Install with ansible-galaxy collection install f5networks.f5_bigip:==1.13.0


Add to requirements.yml

  collections:
    - name: f5networks.f5_bigip
      version: 1.13.0

Description

Manage network interfaces on VELOS chassis partitions.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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: Creating VLAN444
      velos_partition_vlan:
        name: vlan-444
        vlan_id: 444

    - name: Creating VLAN555
      velos_partition_vlan:
        name: vlan-555
        vlan_id: 555

    - name: Attach Vlans to interface
      velos_partition_interface:
        name: "2/1.0"
        trunk_vlans: [444]
        state: present

    - name: modify Vlans to interface
      velos_partition_interface:
        name: "2/1.0"
        trunk_vlans: [444,555]
        state: present

    - name: Delete vlans on interface
      velos_partition_interface:
        name: "2/1.0"
        trunk_vlans: [444,555]
        state: absent

Inputs

    
name:
    description:
    - Name of the chassis partition 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

native_vlan:
    description:
    - Configures the VLAN ID to associate with the interface.
    - The C(native_vlan) and C(trunk_vlans) parameters are mutually exclusive.
    type: int

trunk_vlans:
    description:
    - Configures multiple VLAN IDs to associate with the interface.
    - The C(trunk_vlans) parameter is used for tagged traffic.
    - VLANs should not be assigned to interfaces if Link Aggregation Groups. In that case,
      VLANs should be added to the the LAG configuration with C(velos_partition_lag) module
      instead.
    - The C(native_vlan) and C(trunk_vlans) parameters are mutually exclusive.
    - The order of these VLANs is ignored, the module orders the VLANs automatically.
    elements: int
    type: list

Outputs

name:
  description: Name of the partition interface to configure.
  returned: changed
  sample: new_name
  type: str
trunk_vlans:
  description: trunk_vlans to attach to Interface.
  returned: changed
  sample:
  - 444
  - 555
  type: int