summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-05-06 12:03:52 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-05-09 08:56:43 +0200
commita3cf8d150a5b0450548a967c5dea40b7fb020d4f (patch)
treeed2190e0c1392f4c30ea8584a0881ecb13749604 /src
parentad2d4a1f1a60b7eab92de525d02f689ed7fb6967 (diff)
Add link speed to refresh response
Probe response already has client's link speed, but this API is deprecated.
Diffstat (limited to 'src')
-rw-r--r--src/live/ogOperations.py5
1 files changed, 4 insertions, 1 deletions
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):