W3cubDocs

/Ansible

community.network.dladm_linkprop – Manage link properties on Solaris/illumos systems.

Note

This plugin is part of the community.network collection (version 3.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 community.network.

To use it in a playbook, specify: community.network.dladm_linkprop.

Synopsis

  • Set / reset link properties on Solaris/illumos systems.

Parameters

Parameter Choices/Defaults Comments
link
string / required
Link interface name.

aliases: nic, interface
property
string / required
Specifies the name of the property we want to manage.

aliases: name
state
string
    Choices:
  • present
  • absent
  • reset
Set or reset the property value.
temporary
boolean
    Choices:
  • no
  • yes
Specifies that lin property configuration is temporary. Temporary link property configuration does not persist across reboots.
value
string
Specifies the value we want to set for the link property.

Examples

- name: Set 'maxbw' to 100M on e1000g1
  community.network.dladm_linkprop: name=e1000g1 property=maxbw value=100M state=present

- name: Set 'mtu' to 9000 on e1000g1
  community.network.dladm_linkprop: name=e1000g1 property=mtu value=9000

- name: Reset 'mtu' property on e1000g1
  community.network.dladm_linkprop: name=e1000g1 property=mtu state=reset

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
link
string
always
link name

Sample:
e100g0
property
string
always
property name

Sample:
mtu
state
string
always
state of the target

Sample:
present
temporary
boolean
always
specifies if operation will persist across reboots

Sample:
True
value
string
always
property value

Sample:
9000


Authors

  • Adam Števko (@xen0l)

© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/network/dladm_linkprop_module.html