-
-
Save dkiser/159e20e0ab8fee11a42c to your computer and use it in GitHub Desktop.
salt_hw_nic_infos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for nic, nic_data in salt['network.interfaces']().iteritems() %} | |
{% set _port_type = salt['cmd.run']("ethtool {{nic}} | grep -i 'port:' | awk '{print $2}'") %} | |
{{ _port_type }} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment