From: Stefan Hanreich <s.hanreich@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-network 11/13] api: fabric status: add schema for wireguard properties
Date: Wed, 17 Jun 2026 13:10:08 +0200 [thread overview]
Message-ID: <20260617111012.312710-12-s.hanreich@proxmox.com> (raw)
In-Reply-To: <20260617111012.312710-1-s.hanreich@proxmox.com>
The WireGuard fabric returns lots of addtional options in status
reporting, add the properties to the return schema. Additionally,
improve the description of the existing properties, so the format is
more clear.
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
---
src/PVE/API2/Network/SDN/Nodes/Fabric.pm | 71 +++++++++++++++++++++++-
1 file changed, 68 insertions(+), 3 deletions(-)
diff --git a/src/PVE/API2/Network/SDN/Nodes/Fabric.pm b/src/PVE/API2/Network/SDN/Nodes/Fabric.pm
index 0202b81e..28aa2030 100644
--- a/src/PVE/API2/Network/SDN/Nodes/Fabric.pm
+++ b/src/PVE/API2/Network/SDN/Nodes/Fabric.pm
@@ -115,17 +115,71 @@ __PACKAGE__->register_method({
type => "object",
properties => {
neighbor => {
- description => "The IP or hostname of the neighbor.",
+ description => "The IP or hostname of the neighbor (including the port for WireGuard).",
+ format_description => '(<IP>|<Host>)[:<port>]',
type => 'string',
},
status => {
- description => "The status of the neighbor, as returned by FRR.",
+ description => "The status of the neighbor, as returned by FRR (OSPF, Openfabric, BGP only)",
type => 'string',
+ optional => 1,
},
uptime => {
description =>
- "The uptime of this neighbor, as returned by FRR (e.g. 8h24m12s).",
+ "The uptime of this neighbor, as returned by FRR, e.g. 8h24m12s (OSPF, Openfabric, BGP only)",
type => 'string',
+ optional => 1,
+ },
+ name => {
+ description =>
+ "The name for this neighbor in the WireGuard fabric. (WireGuard only)",
+ format_description => '(<IP>|<Host>)[ (<interface>)]',
+ type => 'string',
+ optional => 1,
+ },
+ interface => {
+ description =>
+ "The name of the interface that uses this neighbor as peer (WireGuard only)",
+ type => 'string',
+ optional => 1,
+ },
+ 'public-key' => {
+ description =>
+ "The public key used for this neighbor (WireGuard only)",
+ format_description => 'Base64-encoded Curve 25519 public key.',
+ type => 'string',
+ optional => 1,
+ },
+ 'allowed-ips' => {
+ description =>
+ "The allowed IPs for this neighbor (WireGuard only)",
+ type => 'string',
+ format_description => 'Comma-separated list of CIDRs.',
+ optional => 1,
+ },
+ 'latest-handshake' => {
+ description =>
+ "UNIX Timestamp of the last successful handshake (WireGuard only)",
+ type => 'number',
+ optional => 1,
+ },
+ 'bytes-rx' => {
+ description =>
+ "The amount of bytes received from this neighbor (WireGuard only)",
+ type => 'number',
+ optional => 1,
+ },
+ 'bytes-tx' => {
+ description =>
+ "The amount of bytes transmitted to this neighbor (WireGuard only)",
+ type => 'number',
+ optional => 1,
+ },
+ 'persistent-keepalive' => {
+ description =>
+ "The currently used persistent keepalive interval for this neighbor (WireGuard only)",
+ type => 'number',
+ optional => 1,
},
},
},
@@ -173,6 +227,17 @@ __PACKAGE__->register_method({
description => "The current state of the interface.",
type => 'string',
},
+ 'public-key' => {
+ description => "The public key of the interface (WireGuard only).",
+ format_description => 'Base64-encoded Curve 25519 public key.',
+ type => 'string',
+ optional => 1,
+ },
+ 'listen-port' => {
+ description => "The listen port of the interface (WireGuard only).",
+ type => 'number',
+ optional => 1,
+ },
},
},
},
--
2.47.3
next prev parent reply other threads:[~2026-06-17 11:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-17 11:09 [PATCH docs/manager/network/proxmox{,-backup,-datacenter-manager,-firewall,-network-interface-pinning,-ve-rs,-perl-rs} 00/13] Status reporting for wireguard fabrics Stefan Hanreich
2026-06-17 11:09 ` [PATCH proxmox 01/13] iproute2: schema: move iproute2 helpers to new create / schema Stefan Hanreich
2026-06-17 11:09 ` [PATCH proxmox 02/13] iproute2: add missing getters Stefan Hanreich
2026-06-17 11:10 ` [PATCH proxmox 03/13] iproute2: add support for parsing interface flags Stefan Hanreich
2026-06-17 11:10 ` [PATCH proxmox 04/13] wireguard: derive additional traits for public key Stefan Hanreich
2026-06-17 11:10 ` [PATCH proxmox-backup 05/13] metric_collection: switch to proxmox-iproute2 crate Stefan Hanreich
2026-06-17 11:10 ` [PATCH proxmox-datacenter-manager 06/13] " Stefan Hanreich
2026-06-17 11:10 ` [PATCH proxmox-firewall 07/13] firewall config: " Stefan Hanreich
2026-06-17 11:10 ` [PATCH proxmox-network-interface-pinning 08/13] network-interface-pinning: " Stefan Hanreich
2026-06-17 11:10 ` [PATCH proxmox-ve-rs 09/13] fabric: wireguard: add helper for findings peer based on endpoint Stefan Hanreich
2026-06-17 11:10 ` [PATCH proxmox-perl-rs 10/13] sdn status: fabrics: add status reporting for wireguard Stefan Hanreich
2026-06-17 11:10 ` Stefan Hanreich [this message]
2026-06-17 11:10 ` [PATCH pve-manager 12/13] ui: fabric content: add wireguard protocol Stefan Hanreich
2026-06-17 11:10 ` [PATCH pve-docs 13/13] sdn: add documentation for wireguard status reporting Stefan Hanreich
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=20260617111012.312710-12-s.hanreich@proxmox.com \
--to=s.hanreich@proxmox.com \
--cc=pve-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.