Skip to content

Commit

Permalink
Fix archlinux guestmetric for ip interfaces
Browse files Browse the repository at this point in the history
Signed-off-by: Loïc Tosser <[email protected]>
  • Loading branch information
wowi42 authored and stormi committed Aug 2, 2022
1 parent d57c31a commit a64facb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guestmetric/guestmetric_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a64facb

Please sign in to comment.