We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13ec0f5 commit c146a16Copy full SHA for c146a16
ethtool-cmd.py
@@ -79,10 +79,15 @@ def show_driver(interface, args = None):
79
80
def run_cmd(cmd, interface, args):
81
global tab
82
+
83
+ active_devices = ethtool.get_active_devices()
84
if not interface:
85
tab = " "
86
for interface in ethtool.get_devices():
- print "%s:" % interface
87
+ inactive = " (not active)"
88
+ if interface in active_devices:
89
+ inactive = ""
90
+ print "%s%s:" % (interface, inactive)
91
cmd(interface, args)
92
else:
93
0 commit comments