mellanox.onyx.onyx_interface – Manage Interfaces on Mellanox ONYX network devices
Note
This plugin is part of the mellanox.onyx collection (version 1.0.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install mellanox.onyx
.
To use it in a playbook, specify: mellanox.onyx.onyx_interface
.
Synopsis
This module provides declarative management of Interfaces on Mellanox ONYX network devices.
Parameters
Parameter |
Comments |
---|---|
List of Interfaces definitions. |
|
Time in seconds to wait before checking for the operational state on remote device. This wait is applicable for operational state argument which are state with values Default: 10 |
|
Description of Interface. |
|
Interface link status Choices:
|
|
Interface link status. Choices:
|
|
Maximum size of transmit packet. |
|
Name of the Interface. |
|
Purge Interfaces not defined in the aggregate parameter. This applies only for logical interface. Choices:
|
|
Receiver rate in bits per second (bps). This is state check parameter only. Supports conditionals, see Conditionals in Networking Modules |
|
Interface link speed. Choices:
|
|
State of the Interface configuration, Choices:
|
|
Transmit rate in bits per second (bps). This is state check parameter only. Supports conditionals, see Conditionals in Networking Modules |
Examples
- name: Configure interface
onyx_interface:
name: Eth1/2
description: test-interface
speed: 100G
mtu: 512
- name: Make interface up
onyx_interface:
name: Eth1/2
enabled: True
- name: Make interface down
onyx_interface:
name: Eth1/2
enabled: False
- name: Check intent arguments
onyx_interface:
name: Eth1/2
state: up
- name: Config + intent
onyx_interface:
name: Eth1/2
enabled: False
state: down
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The list of configuration mode commands to send to the device. Returned: always Sample: [“interface ethernet 1/2”, “description test-interface”, “mtu 512”, “exit”] |
Authors
Samer Deeb (@samerd)