summaryrefslogtreecommitdiff
path: root/units
diff options
Diffstat (limited to 'units')
-rw-r--r--units/ethernet/jobs.pxu15
1 files changed, 15 insertions, 0 deletions
diff --git a/units/ethernet/jobs.pxu b/units/ethernet/jobs.pxu
index b31fc15..94dcda3 100644
--- a/units/ethernet/jobs.pxu
+++ b/units/ethernet/jobs.pxu
@@ -129,6 +129,21 @@ _description:
unit: template
template-resource: device
template-filter: device.category == 'NETWORK' and device.interface != 'UNKNOWN'
+plugin: shell
+category_id: com.canonical.plainbox::ethernet
+id: ethernet/ethertool_eee_check_device_{interface}
+_summary: Check ethtool EEE status for NIC {interface}
+estimated_duration: 330.0
+requires:
+ package.name == 'ethtool' or executable.name == 'ethtool'
+user: root
+command: ethtool --show-eee {interface} | grep "EEE status: enabled - active"
+_description:
+ Test that Energy Efficient Ethernet (EEE) is enabled on interface {interface} using ethtool.
+
+unit: template
+template-resource: device
+template-filter: device.category == 'NETWORK' and device.interface != 'UNKNOWN'
plugin: user-interact-verify
category_id: com.canonical.plainbox::ethernet
id: ethernet/maximum_bandwidth_device{__index__}_{interface}