Update Metric Collector to Handle Incorrect Kernel File Values

Sometimes a port is recognized as existing but not properly configured which leads to kernel files not being correctly populated with correct values with respect to their properties. We should only consider a port to be Up/Active if the values match the spec and ignore any nonsense values. For example, negative speed does not make sense for a non active port.

Tested: Negative speed in /sys/class/net/speed file is ignored.

Change-Id: I0d6fb8c475e35c508a3e1166126b583a6bd3dcd7
Signed-off-by: Edward Lee <edwarddl@google.com>
1 file changed
tree: b2f3bb6e3591c6ffcd856bad6296fc9892d97b27
  1. conf/
  2. dynamic-layers/
  3. meta-nuvoton-npcm8xx/
  4. recipes-connectivity/
  5. recipes-core/
  6. recipes-extended/
  7. recipes-google/
  8. recipes-kernel/
  9. recipes-phosphor/
  10. LICENSE
  11. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.