all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH pmg-api] fix #7187: report: add ethtool output for physical interfaces
@ 2026-05-08 12:44 Erik Fastermann
  0 siblings, 0 replies; only message in thread
From: Erik Fastermann @ 2026-05-08 12:44 UTC (permalink / raw)
  To: pmg-devel; +Cc: Erik Fastermann

The implementation mirrors the change in pve-manager,
as the report functionality is similar in both projects.

Signed-off-by: Erik Fastermann <e.fastermann@proxmox.com>
---

 NOTE: A similar patch was applied to all products:
 pmg, pve, pbs, pdm.

 src/PMG/Report.pm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/PMG/Report.pm b/src/PMG/Report.pm
index 84d1b88..4732826 100644
--- a/src/PMG/Report.pm
+++ b/src/PMG/Report.pm
@@ -4,6 +4,7 @@ use strict;
 use warnings;
 use Mail::SpamAssassin::DnsResolver;
 
+use PVE::IPRoute2;
 use PVE::Tools;
 use PMG::Utils;
 
@@ -58,6 +59,14 @@ my $report_def = {
     ],
 };
 
+my $interfaces = PVE::IPRoute2::ip_link_details();
+
+for my $iface (sort keys %{$interfaces}) {
+    if (PVE::IPRoute2::ip_link_is_physical($interfaces->{$iface})) {
+        push @{ $report_def->{network} }, "ethtool $iface";
+    }
+}
+
 my @report_order = ('general', 'storage', 'network', 'firewall', 'cluster', 'pmg');
 
 my $report = '';
-- 
2.47.3





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-08 12:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-08 12:44 [PATCH pmg-api] fix #7187: report: add ethtool output for physical interfaces Erik Fastermann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal