velos_partition_interface – Manage network interfaces on VELOS chassis partitions¶
New in version 1.4.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_interface instead. |
Parameters¶
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
name
string
/ required
|
Name of the chassis partition interface to configure.
|
||
native_vlan
integer
|
Configures the VLAN ID to associate with the interface.
The
native_vlan and trunk_vlans parameters are mutually exclusive. |
||
state
string
|
|
If
present , creates the specified object if it does not exist, or updates the existing object.If
absent , deletes the object if it exists. |
|
trunk_vlans
list
/ elements=integer
|
Configures multiple VLAN IDs to associate with the interface.
The
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
velos_partition_lag module instead.The
native_vlan and trunk_vlans parameters are mutually exclusive.The order of these VLANs is ignored, the module orders the VLANs automatically.
|
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: 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
Return Values¶
The following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
name
string
|
changed |
Name of the partition interface to configure.
Sample:
new_name
|
trunk_vlans
integer
|
changed |
trunk_vlans to attach to Interface.
Sample:
[444, 555]
|
Status¶
- This module will be removed in version 2.0.0. [deprecated]
- For more information see DEPRECATED.
Authors¶
- Ravinder Reddy (@chinthalapalli)