From: Gabriel Goller <g.goller@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH network] sdn: fabrics: make ip_prefix and ip6_prefix deletable
Date: Wed, 20 May 2026 17:09:59 +0200 [thread overview]
Message-ID: <20260520151010.394164-1-g.goller@proxmox.com> (raw)
This allows us to update (and remove) the prefixes of fabrics which
don't have any nodes configured. There still has to be at least one ipv6
or ipv4 prefix on the fabric. This is validated in the frontend and in
the backend (rust).
Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
---
src/PVE/Network/SDN/Fabrics.pm | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/PVE/Network/SDN/Fabrics.pm b/src/PVE/Network/SDN/Fabrics.pm
index b828d3d6ddff..87f7c44c572e 100644
--- a/src/PVE/Network/SDN/Fabrics.pm
+++ b/src/PVE/Network/SDN/Fabrics.pm
@@ -614,7 +614,13 @@ sub fabric_properties {
'instance-types' => ['openfabric'],
items => {
type => 'string',
- enum => ['hello_interval', 'csnp_interval', 'route_filter'],
+ enum => [
+ 'ip_prefix',
+ 'ip6_prefix',
+ 'hello_interval',
+ 'csnp_interval',
+ 'route_filter',
+ ],
},
optional => 1,
},
@@ -623,7 +629,14 @@ sub fabric_properties {
'instance-types' => ['bgp'],
items => {
type => 'string',
- enum => ['redistribute', 'route_filter', 'route_map_in', 'route_map_out'],
+ enum => [
+ 'ip_prefix',
+ 'ip6_prefix',
+ 'redistribute',
+ 'route_filter',
+ 'route_map_in',
+ 'route_map_out',
+ ],
},
optional => 1,
},
--
2.47.3
next reply other threads:[~2026-05-20 15:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-20 15:09 Gabriel Goller [this message]
2026-05-21 12:03 ` applied: [PATCH network] sdn: fabrics: make ip_prefix and ip6_prefix deletable Thomas Lamprecht
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=20260520151010.394164-1-g.goller@proxmox.com \
--to=g.goller@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.