Skip to content

Commit d248e2f

Browse files
authored
CP-54445: Filter out ibft devices which are for boot from iSCSI SAN (#6453)
These IBFT devices are not managed by Toolstack and therefore are not involved in the ordering process.
2 parents 2acf271 + ce76ccd commit d248e2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ocaml/networkd/lib/network_device_order.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ module Dev = struct
262262
)
263263
devs
264264

265+
let not_ibft t =
266+
try Scanf.sscanf t.name "ibft%d%!" (fun _ -> false) with _ -> true
267+
265268
let get_all () : (t list, error) result =
266269
let* devs =
267270
Network_utils.call_script cmd_biosdevname
@@ -271,6 +274,7 @@ module Dev = struct
271274
|> List.map parse
272275
|> fold_results
273276
in
277+
let devs = List.filter not_ibft devs in
274278
try
275279
MacaddrUniqueMap.of_unique_list (fun v -> v.mac) devs |> ignore ;
276280
Ok (update_multi_nic devs)

0 commit comments

Comments
 (0)