]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: ethtool: fec: only use and compare lowercase data
authorJulien Fortin <julien@cumulusnetworks.com>
Tue, 6 Nov 2018 00:35:37 +0000 (01:35 +0100)
committerJulien Fortin <julien@cumulusnetworks.com>
Thu, 13 Dec 2018 22:43:57 +0000 (14:43 -0800)
commitfc0026de8486741da99bd9b8d30b8acc09acfec6
tree162ecb8021af6da486a6ce993aacb4cf9fd6a33a
parent0c4237d58d1a1950c5a121c2230987a5991e0965
addons: ethtool: fec: only use and compare lowercase data

on --show-fec ethtool seems to return fec in uppercase while
we only advertise lowercase validvals. We should only deal
and compare lowercase values for running, config and default

root@host:/home/cumulus# /sbin/ethtool --show-fec swp29
FEC parameters for swp29:
FEC encodings   : RS
root@host:/home/cumulus#

testing:
set: link-fec rs
ifup/ifreloads

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
ifupdown2/addons/ethtool.py