public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox{, -network-interface-pinning} v2 0/3] make ip link deserializing more robust
@ 2025-08-08 10:23 Stefan Hanreich
  2025-08-08 10:23 ` [pbs-devel] [PATCH proxmox v2 1/2] network-api: properly parse ip link output based on link_type Stefan Hanreich
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Stefan Hanreich @ 2025-08-08 10:23 UTC (permalink / raw)
  To: pbs-devel

As reported in the forum by [1], there are types of interfaces that do not have
a MAC address, which tripped up the previous deserializing logic. Make the ip
link parsing more robust in general, to prevent tripping up on unexpected
interface types / network configuration.

Changes from v1:
* abstracted link_type specific properties into an enum (Thanks @Christian)
* added tests for all links that proved problematic for the old parser (Thanks
  @Christian for providing me with sample output)
* added a small housekeeping patch that adds some documentation to the public
  API

[1] https://forum.proxmox.com/threads/proxmox-backup-proxy-seemingly-crashes-after-being-accessed-through-reverse-proxy-after-update-to-4-0.169313/

proxmox:

Stefan Hanreich (2):
  network-api: properly parse ip link output based on link_type
  config: helper: document public API

 proxmox-network-api/src/config/helper.rs | 277 ++++++++++++++++++++++-
 1 file changed, 266 insertions(+), 11 deletions(-)


proxmox-network-interface-pinning:

Stefan Hanreich (1):
  network-interface-pinning: adapt to optional mac address

 src/main.rs | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)


Summary over all repositories:
  2 files changed, 283 insertions(+), 21 deletions(-)

-- 
Generated by git-murpp 0.8.0

_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-08-11 12:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-08 10:23 [pbs-devel] [PATCH proxmox{, -network-interface-pinning} v2 0/3] make ip link deserializing more robust Stefan Hanreich
2025-08-08 10:23 ` [pbs-devel] [PATCH proxmox v2 1/2] network-api: properly parse ip link output based on link_type Stefan Hanreich
2025-08-08 10:23 ` [pbs-devel] [PATCH proxmox v2 2/2] config: helper: document public API Stefan Hanreich
2025-08-08 10:23 ` [pbs-devel] [PATCH proxmox-network-interface-pinning v2 1/1] network-interface-pinning: adapt to optional mac address Stefan Hanreich
2025-08-08 12:48 ` [pbs-devel] [PATCH proxmox{, -network-interface-pinning} v2 0/3] make ip link deserializing more robust Christian Ebner
2025-08-11 12:43 ` [pbs-devel] applied-series: " Fabian Grünbichler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal