summaryrefslogtreecommitdiff
path: root/units
diff options
authorShih-Yuan Lee (FourDollars) <sylee@canonical.com>2020-06-18 16:48:51 +0800
committerShih-Yuan Lee (FourDollars) <sylee@canonical.com>2020-06-18 18:01:43 +0800
commit69394af3b1a9d8989c74b768b601a9d50d506ffd (patch)
treea106bce8ea1b90336a23483056abb947e0145687 /units
parent3f39467e039a092c627a3ac3d994395053767385 (diff)
Add a test case to check Energy Efficient Ethernet (EEE) status.
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}