From c9ceb3159b590f73a220fe83c23a4cdf2e2a603e Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 22 Feb 2023 01:04:25 -0500 Subject: [PATCH] Remove obsolete LINKSPEED variable --- node-daemon/plugins/nics | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/node-daemon/plugins/nics b/node-daemon/plugins/nics index 707078fc..0d2f1198 100644 --- a/node-daemon/plugins/nics +++ b/node-daemon/plugins/nics @@ -46,10 +46,6 @@ from pvcnoded.objects.MonitoringInstance import MonitoringPlugin # the file name PLUGIN_NAME = "nics" -# Set a minimum link speed variable used below -# For PVC at least 10 Gbps is required for proper operation of a cluster -MINIMUM_LINKSPEED = 10000 - # The MonitoringPluginScript class must be named as such, and extend MonitoringPlugin. class MonitoringPluginScript(MonitoringPlugin): @@ -172,7 +168,7 @@ class MonitoringPluginScript(MonitoringPlugin): max_supported_link_speed = sorted(list(supported_link_speeds))[-1] - # Ensure interface is running at MINIMUM_LINKSPEED + # Ensure interface is running at its maximum speed with open(f"/sys/class/net/{dev}/speed") as devfh: dev_speed = int(devfh.read()) if dev_speed < max_supported_link_speed: