Skip to content

Commit 25c102a

Browse files
authored
Merge pull request #159 from minglumlu/private/mingl/CA-320563
CA-320563: xcp-networkd: fix the regex match for PCI BDF string
2 parents 946a967 + 82354a8 commit 25c102a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/network_utils.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ module Sysfs = struct
246246
try
247247
Sys.readdir ("/sys/bus/pci/drivers/" ^ driver)
248248
|> Array.to_list
249-
|> List.filter (Re.execp (Re.Perl.compile_pat "\\d+:\\d+:\\d+\\.\\d+"))
249+
|> List.filter (Re.execp (Re.Perl.compile_pat "\\d+:[a-f\\d]+:[a-f\\d]+\\.\\d+"))
250250
|> List.length
251251
with _ -> 0
252252

0 commit comments

Comments
 (0)