From a3cf8d150a5b0450548a967c5dea40b7fb020d4f Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 6 May 2022 12:03:52 +0200 Subject: Add link speed to refresh response Probe response already has client's link speed, but this API is deprecated. --- src/live/ogOperations.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index a3c3836..51f5f2e 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -325,9 +325,12 @@ class OgLiveOperations: cache = cache_probe() disks = get_disks() + interface = os.getenv('DEVICE') + link = ethtool(interface) parsed = { 'serial_number': '', 'disk_setup': [], - 'partition_setup': [] + 'partition_setup': [], + 'link': link } for num_disk, disk in enumerate(get_disks(), start=1): -- cgit v1.2.3-18-g5258