New in version 2.5.
Parameter | Choices/Defaults | Comments |
---|---|---|
aggregate - | List of Interfaces definitions. | |
delay - | Default: 10 | 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 up /down . |
description - | Description of Interface. | |
duplex - |
| Interface link status |
enabled boolean |
| Interface link status. |
mtu - | Maximum size of transmit packet. | |
name - / required | Name of the Interface. | |
purge boolean |
| Purge Interfaces not defined in the aggregate parameter. This applies only for logical interface. |
rx_rate - | Receiver rate in bits per second (bps). This is state check parameter only. Supports conditionals, see Conditionals in Networking Modules
| |
speed - |
| Interface link speed. |
state - |
| State of the Interface configuration, up means present and operationally up and down means present and operationally down
|
tx_rate - | Transmit rate in bits per second (bps). This is state check parameter only. Supports conditionals, see Conditionals in Networking Modules
|
- 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
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
commands list | always | The list of configuration mode commands to send to the device. Sample: ['interface ethernet 1/2', 'description test-interface', 'mtu 512', 'exit'] |
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.9/modules/onyx_interface_module.html