[pve-devel] applied: [PATCH proxmox 1/1] network-api: fall back to PHYSICAL_NIC_REGEX

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Aug 5 12:41:02 CEST 2025


applied this one, thanks

On Mon, Aug 04, 2025 at 01:11:26PM +0200, Stefan Hanreich wrote:
> In order to detect every interface we detected before as physical (in
> addition to the ones detect by 'ip link'), fall back to
> PHYSICAL_NIC_REGEX when detecting physical interfaces.
> 
> Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
> ---
>  proxmox-network-api/src/config/helper.rs | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/proxmox-network-api/src/config/helper.rs b/proxmox-network-api/src/config/helper.rs
> index 7d5fe1e6..4f17b9ee 100644
> --- a/proxmox-network-api/src/config/helper.rs
> +++ b/proxmox-network-api/src/config/helper.rs
> @@ -11,6 +11,8 @@ use proxmox_network_types::mac_address::MacAddress;
>  use proxmox_schema::api_types::IPV4RE_STR;
>  use proxmox_schema::api_types::IPV6RE_STR;
>  
> +use crate::config::PHYSICAL_NIC_REGEX;
> +
>  pub static IPV4_REVERSE_MASK: &[&str] = &[
>      "0.0.0.0",
>      "128.0.0.0",
> @@ -146,8 +148,9 @@ impl IpLink {
>      }
>  
>      pub fn is_physical(&self) -> bool {
> -        self.link_type == "ether"
> -            && (self.linkinfo.is_none() || self.linkinfo.as_ref().unwrap().info_kind.is_none())
> +        (self.link_type == "ether"
> +            && (self.linkinfo.is_none() || self.linkinfo.as_ref().unwrap().info_kind.is_none()))
> +            || PHYSICAL_NIC_REGEX.is_match(&self.ifname)
>      }
>  
>      pub fn name(&self) -> &str {
> -- 
> 2.47.2
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 




More information about the pve-devel mailing list