summarylogtreecommitdiffstats
path: root/002-Fix-archlinux-guestmetric-for-ip-interfaces.patch
blob: 8447963b6ea8ea0973e0586ed20bee6a4bbb86c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 4ea1b235e3c586a089cfd53fdccf9cd6461dd4a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Tosser?= <loic@kalvad.com>
Date: Fri, 28 Jan 2022 19:11:29 +0400
Subject: [PATCH 1/5] Fix archlinux guestmetric for ip interfaces
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Loïc Tosser <loic@kalvad.com>
---
 guestmetric/guestmetric_linux.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guestmetric/guestmetric_linux.go b/guestmetric/guestmetric_linux.go
index 198f8b6..3cf32ba 100644
--- a/guestmetric/guestmetric_linux.go
+++ b/guestmetric/guestmetric_linux.go
@@ -182,7 +182,7 @@ func (c *Collector) CollectNetworkAddr() (GuestMetric, error) {
 	current := make(GuestMetric, 0)
 
 	var paths []string
-	vifNamePrefixList := [...]string{"eth", "eno", "ens", "emp", "enx"}
+	vifNamePrefixList := [...]string{"eth", "eno", "ens", "emp", "enx", "enX"}
 	for _, prefix := range vifNamePrefixList {
 		prefixPaths, err := filepath.Glob(fmt.Sprintf("/sys/class/net/%s*", prefix))
 		if err != nil {
-- 
2.35.1