public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH network] sdn: fabrics: make ip_prefix and ip6_prefix deletable
@ 2026-05-20 15:09 Gabriel Goller
  2026-05-21 12:03 ` applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Gabriel Goller @ 2026-05-20 15:09 UTC (permalink / raw)
  To: pve-devel

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





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

* applied: [PATCH network] sdn: fabrics: make ip_prefix and ip6_prefix deletable
  2026-05-20 15:09 [PATCH network] sdn: fabrics: make ip_prefix and ip6_prefix deletable Gabriel Goller
@ 2026-05-21 12:03 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2026-05-21 12:03 UTC (permalink / raw)
  To: pve-devel, Gabriel Goller

On Wed, 20 May 2026 17:09:59 +0200, Gabriel Goller wrote:
> 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).

Applied, thanks!

[1/1] sdn: fabrics: make ip_prefix and ip6_prefix deletable
      commit: c06e4a6c2d881a69c56c9f3fdd50e0ce30580777




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

end of thread, other threads:[~2026-05-21 12:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-20 15:09 [PATCH network] sdn: fabrics: make ip_prefix and ip6_prefix deletable Gabriel Goller
2026-05-21 12:03 ` applied: " Thomas Lamprecht

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