W3cubDocs

/Ansible

dladm_linkprop - Manage link properties on Solaris/illumos systems.

Synopsis

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

Options

parameter required default choices comments
link
yes
Link interface name.
aliases: nic, interface
property
yes
Specifies the name of the property we want to manage.
aliases: name
state
no present
  • present
  • absent
  • reset
Set or reset the property value.
temporary
no
  • yes
  • no
Specifies that lin property configuration is temporary. Temporary link property configuration does not persist across reboots.
value
no
Specifies the value we want to set for the link property.

Examples

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

name: Set 'mtu' to 9000 on e1000g1
dladm_linkprop: name=e1000g1 property=mtu value=9000

name: Reset 'mtu' property on e1000g1
dladm_linkprop: name=e1000g1 property=mtu state=reset

Return Values

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

name description returned type sample
temporary
specifies if operation will persist across reboots
always boolean True
state
state of the target
always string present
property
property name
always string mtu
link
link name
always string e100g0
value
property value
always string 9000

Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.

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