From: Stefan Hanreich <s.hanreich@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] superseded: [PATCH proxmox{-ve-rs, , -backup, -firewall, -network-interface-pinning} v2 0/8] proxmox-network-interface-pinning
Date: Wed, 30 Jul 2025 17:54:09 +0200 [thread overview]
Message-ID: <36debaea-d084-4f85-af08-b2360e97d62a@proxmox.com> (raw)
In-Reply-To: <20250730141550.281340-1-s.hanreich@proxmox.com>
https://lore.proxmox.com/pbs-devel/20250730155157.363596-1-s.hanreich@proxmox.com/T/#t
On 7/30/25 4:15 PM, Stefan Hanreich wrote:
> Introduce the proxmox-network-interface-pinning tool for PBS, written in Rust.
>
> I basically had to do the same changes to the network stack in PBS, that I
> already had to do for Proxmox VE:
>
> * use ip link for determining physical interfaces in the network configuration
> stack
> * move metric collection over to this new method as well
>
> In the process I moved the existing functions for querying 'ip link', that were
> already used by the firewall, to proxmox-network-api which seems like a better
> fit than proxmox-ve-config (which was only a temporary solution anyway).
>
> I also decided to move PBS over to the implementations contained in
> proxmox-network-api, but if this is considered too drastic a change so close to
> a release (I'm torn myself), then it should be trivial to revert those changes
> and implement / copy-paste everything to the respective projects instead.
>
> PBS does not automatically apply pending changes on reboot. It is already agreed
> with @Thomas, that he will add a respective service to the PBS repository.
>
> Changes from v2:
> * remove Cargo.lock from proxmox-network-interface-pinning initial commit
> * change path for Proxmox VE pinning tool to /usr/libexec
> * install this tool to /usr/bin instead
>
> proxmox-backup depends on proxmox-network-api
> proxmox-firewall depends on proxmox-network-api
> proxmox-network-interface-pinning depends on proxmox-network-api
>
> proxmox-ve-rs:
>
> Stefan Hanreich (1):
> host: network: move to proxmox-network-api
>
> proxmox-ve-config/src/host/mod.rs | 1 -
> proxmox-ve-config/src/host/network.rs | 35 ---------------------------
> 2 files changed, 36 deletions(-)
> delete mode 100644 proxmox-ve-config/src/host/network.rs
>
>
> proxmox:
>
> Stefan Hanreich (3):
> pbs-api-types: use proxmox-network-api types
> proxmox-network-api: use ip link for querying interface information
> network-api: add rename_interfaces method
>
> Cargo.toml | 1 +
> pbs-api-types/src/network.rs | 345 -----------------------
> proxmox-network-api/Cargo.toml | 2 +
> proxmox-network-api/debian/control | 8 +-
> proxmox-network-api/src/api_types.rs | 8 +-
> proxmox-network-api/src/config/helper.rs | 158 +++++++----
> proxmox-network-api/src/config/mod.rs | 72 ++++-
> proxmox-network-api/src/config/parser.rs | 37 ++-
> 8 files changed, 206 insertions(+), 425 deletions(-)
> delete mode 100644 pbs-api-types/src/network.rs
>
>
> proxmox-backup:
>
> Stefan Hanreich (2):
> config: network: move to proxmox-network-api
> metric_collection: use ip link for determining the type of interfaces
>
> Cargo.toml | 5 +
> debian/control | 1 +
> pbs-config/src/lib.rs | 10 +-
> pbs-config/src/network/helper.rs | 223 -----
> pbs-config/src/network/lexer.rs | 136 ---
> pbs-config/src/network/mod.rs | 687 ---------------
> pbs-config/src/network/parser.rs | 846 -------------------
> src/api2/node/network.rs | 13 +-
> src/bin/proxmox-backup-api.rs | 3 +-
> src/bin/proxmox-backup-manager.rs | 1 +
> src/bin/proxmox-backup-proxy.rs | 1 +
> src/bin/proxmox_backup_manager/network.rs | 14 +-
> src/server/metric_collection/mod.rs | 87 +-
> src/server/metric_collection/pull_metrics.rs | 5 +-
> src/server/metric_collection/rrd.rs | 5 +-
> 15 files changed, 112 insertions(+), 1925 deletions(-)
> delete mode 100644 pbs-config/src/network/helper.rs
> delete mode 100644 pbs-config/src/network/lexer.rs
> delete mode 100644 pbs-config/src/network/mod.rs
> delete mode 100644 pbs-config/src/network/parser.rs
>
>
> proxmox-firewall:
>
> Stefan Hanreich (1):
> firewall: config: use proxmox-network-api
>
> proxmox-firewall/Cargo.toml | 3 ++-
> proxmox-firewall/src/config.rs | 29 +++++----------------
> proxmox-firewall/tests/integration_tests.rs | 8 +++---
> 3 files changed, 12 insertions(+), 28 deletions(-)
>
>
> proxmox-network-interface-pinning:
>
> Stefan Hanreich (1):
> initial commit
>
>
> Summary over all repositories:
> 28 files changed, 330 insertions(+), 2414 deletions(-)
>
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
prev parent reply other threads:[~2025-07-30 15:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-30 14:15 [pbs-devel] " Stefan Hanreich
2025-07-30 14:15 ` [pbs-devel] [PATCH proxmox-ve-rs v2 1/1] host: network: move to proxmox-network-api Stefan Hanreich
2025-07-30 14:15 ` [pbs-devel] [PATCH proxmox v2 1/3] pbs-api-types: use proxmox-network-api types Stefan Hanreich
2025-07-30 14:15 ` [pbs-devel] [PATCH proxmox v2 2/3] proxmox-network-api: use ip link for querying interface information Stefan Hanreich
2025-07-30 14:15 ` [pbs-devel] [PATCH proxmox v2 3/3] network-api: add rename_interfaces method Stefan Hanreich
2025-07-30 14:15 ` [pbs-devel] [PATCH proxmox-backup v2 1/2] config: network: move to proxmox-network-api Stefan Hanreich
2025-07-30 14:15 ` [pbs-devel] [PATCH proxmox-backup v2 2/2] metric_collection: use ip link for determining the type of interfaces Stefan Hanreich
2025-07-30 14:15 ` [pbs-devel] [PATCH proxmox-firewall v2 1/1] firewall: config: use proxmox-network-api Stefan Hanreich
2025-07-30 14:15 ` [pbs-devel] [PATCH proxmox-network-interface-pinning v2 1/1] initial commit Stefan Hanreich
2025-07-30 15:54 ` Stefan Hanreich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=36debaea-d084-4f85-af08-b2360e97d62a@proxmox.com \
--to=s.hanreich@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox