salt.modules.ethtool

Module for running ethtool command

New in version 2016.3.0.

codeauthor:

Krzysztof Pawlowski <msciciel@msciciel.eu>

maturity:

new

depends:

python-ethtool

platform:

linux

salt.modules.ethtool.set_coalesce(devname, **kwargs)

Changes the coalescing settings of the specified network device

CLI Example:

salt '*' ethtool.set_coalesce <devname> [adaptive_rx=on|off] [adaptive_tx=on|off] [rx_usecs=N] [rx_frames=N]
    [rx_usecs_irq=N] [rx_frames_irq=N] [tx_usecs=N] [tx_frames=N] [tx_usecs_irq=N] [tx_frames_irq=N]
    [stats_block_usecs=N] [pkt_rate_low=N] [rx_usecs_low=N] [rx_frames_low=N] [tx_usecs_low=N] [tx_frames_low=N]
    [pkt_rate_high=N] [rx_usecs_high=N] [rx_frames_high=N] [tx_usecs_high=N] [tx_frames_high=N]
    [sample_interval=N]
salt.modules.ethtool.set_feature(devname, **kwargs)

New in version 3006.0.

Changes the feature parameters of the specified network device

CLI Example:

salt '*' ethtool.set_feature <devname> sg=off
salt.modules.ethtool.set_offload(devname, **kwargs)

Changes the offload parameters and other features of the specified network device

CLI Example:

salt '*' ethtool.set_offload <devname> tcp_segmentation_offload=on
salt.modules.ethtool.set_pause(devname, **kwargs)

New in version 3006.0.

Changes the pause parameters of the specified network device

CLI Example:

salt '*' ethtool.set_pause <devname> autoneg=off rx=off tx=off
salt.modules.ethtool.set_ring(devname, **kwargs)

Changes the rx/tx ring parameters of the specified network device

CLI Example:

salt '*' ethtool.set_ring <devname> [rx=N] [rx_mini=N] [rx_jumbo=N] [tx=N]
salt.modules.ethtool.show_coalesce(devname)

Queries the specified network device for coalescing information

CLI Example:

salt '*' ethtool.show_coalesce <devname>
salt.modules.ethtool.show_driver(devname)

Queries the specified network device for associated driver information

CLI Example:

salt '*' ethtool.show_driver <devname>
salt.modules.ethtool.show_features(devname)

New in version 3006.0.

Queries the specified network device for associated feature information

CLI Example:

salt '*' ethtool.show_features <devname>
salt.modules.ethtool.show_offload(devname)

Queries the specified network device for the state of protocol offload and other features

CLI Example:

salt '*' ethtool.show_offload <devname>
salt.modules.ethtool.show_pause(devname)

New in version 3006.0.

Queries the specified network device for associated pause information

CLI Example:

salt '*' ethtool.show_pause <devname>
salt.modules.ethtool.show_ring(devname)

Queries the specified network device for rx/tx ring parameter information

CLI Example:

salt '*' ethtool.show_ring <devname>