salt.modules.udev

Manage and query udev info

2015.8.0 新版功能.

salt.modules.udev.env(dev)

Return all environment variables udev has for dev

CLI Example:

salt '*' udev.env /dev/sda
salt '*' udev.env /sys/class/net/eth0
salt.modules.udev.info(dev)

Extract all info delivered by udevadm

CLI Example:

salt '*' udev.info /dev/sda
salt '*' udev.info /sys/class/net/eth0

Return all udev-created device symlinks

CLI Example:

salt '*' udev.links /dev/sda
salt '*' udev.links /sys/class/net/eth0
salt.modules.udev.name(dev)

Return the actual dev name(s?) according to udev for dev

CLI Example:

salt '*' udev.dev /dev/sda
salt '*' udev.dev /sys/class/net/eth0
salt.modules.udev.path(dev)

Return the physical device path(s?) according to udev for dev

CLI Example:

salt '*' udev.path /dev/sda
salt '*' udev.path /sys/class/net/eth0