From 9ccd34149d6369c5daf902e5b9cb824cdbeb6dd4 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Fri, 19 Dec 2025 21:39:10 +0100 Subject: T8110: "list_interfaces --bondable" must not return VLAN subinterfaces Inspired by the regex used for "set interfaces ethernet" adjust the regex to match for interfaces acting as a bond member interface. This has been changed to also include (in addition to eth) lan, eno, ens prefixed physical interfaces. --- src/completion/list_interfaces/list_interfaces.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/completion/list_interfaces/list_interfaces.ml b/src/completion/list_interfaces/list_interfaces.ml index cf6301ed5..b76afd4c1 100644 --- a/src/completion/list_interfaces/list_interfaces.ml +++ b/src/completion/list_interfaces/list_interfaces.ml @@ -84,7 +84,7 @@ let filter_bridgeable s = with Not_found -> false let filter_bondable s = - let pattern = {|^(eth)(.*)$|} + let pattern = {|^(eth|lan|eno|ens)[A-Za-z0-9_-]*$|} in try let _ = Pcre2.exec ~pat:pattern s in -- cgit v1.2.3