public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Lukas Sichert <l.sichert@proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Lukas Sichert <l.sichert@proxmox.com>
Subject: [PATCH network v3 1/7] style: zones: use fully qualified JSONSchema calls for standard options
Date: Thu, 26 Nov 2026 16:28:59 +0100	[thread overview]
Message-ID: <20261126153925.54600-2-l.sichert@proxmox.com> (raw)
In-Reply-To: <20261126153925.54600-1-l.sichert@proxmox.com>

Drop the redundant get_standard_option import and call the helper
through PVE::JSONSchema directly. Reorder the remaining module imports
alphabetically.

Signed-off-by: Lukas Sichert <l.sichert@proxmox.com>
---

Notes:
    new in v3

 src/PVE/Network/SDN/Zones.pm        | 12 ++++++------
 src/PVE/Network/SDN/Zones/Plugin.pm | 11 +++++------
 2 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/src/PVE/Network/SDN/Zones.pm b/src/PVE/Network/SDN/Zones.pm
index e4116d7..6981c27 100644
--- a/src/PVE/Network/SDN/Zones.pm
+++ b/src/PVE/Network/SDN/Zones.pm
@@ -6,25 +6,25 @@ use warnings;
 use JSON;
 use Storable qw(dclone);
 
-use PVE::Exception qw(raise_param_exc);
-use PVE::Tools qw(extract_param dir_glob_regex run_command);
 use PVE::Cluster qw(cfs_read_file cfs_write_file cfs_lock_file);
+use PVE::Exception qw(raise_param_exc);
 use PVE::IPRoute2;
 use PVE::Network;
 use PVE::RESTEnvironment qw(log_warn);
+use PVE::Tools qw(extract_param dir_glob_regex run_command);
 
 use PVE::Network::SDN::Controllers;
 use PVE::Network::SDN::Dns;
 use PVE::Network::SDN::Fabrics;
 use PVE::Network::SDN::Ipams;
 use PVE::Network::SDN::Vnets;
-use PVE::Network::SDN::Zones::VlanPlugin;
-use PVE::Network::SDN::Zones::QinQPlugin;
-use PVE::Network::SDN::Zones::VxlanPlugin;
 use PVE::Network::SDN::Zones::EvpnPlugin;
 use PVE::Network::SDN::Zones::FaucetPlugin;
-use PVE::Network::SDN::Zones::SimplePlugin;
 use PVE::Network::SDN::Zones::Plugin;
+use PVE::Network::SDN::Zones::QinQPlugin;
+use PVE::Network::SDN::Zones::SimplePlugin;
+use PVE::Network::SDN::Zones::VlanPlugin;
+use PVE::Network::SDN::Zones::VxlanPlugin;
 
 PVE::Network::SDN::Zones::VlanPlugin->register();
 PVE::Network::SDN::Zones::QinQPlugin->register();
diff --git a/src/PVE/Network/SDN/Zones/Plugin.pm b/src/PVE/Network/SDN/Zones/Plugin.pm
index 3fa2ab5..795ec9f 100644
--- a/src/PVE/Network/SDN/Zones/Plugin.pm
+++ b/src/PVE/Network/SDN/Zones/Plugin.pm
@@ -1,17 +1,16 @@
 package PVE::Network::SDN::Zones::Plugin;
 
+use Net::IP qw(ip_get_version);
 use strict;
 use warnings;
 
-use PVE::Tools qw(run_command);
-use Net::IP qw(ip_get_version);
-use PVE::JSONSchema;
 use PVE::Cluster;
+use PVE::JSONSchema;
 use PVE::Network;
 use PVE::Network::SDN::Formats;
 use PVE::RS::SDN;
+use PVE::Tools qw(run_command);
 
-use PVE::JSONSchema qw(get_standard_option);
 use base qw(PVE::SectionConfig);
 
 PVE::Cluster::cfs_register_file(
@@ -105,7 +104,7 @@ my $defaultData = {
             format => 'pve-configid',
             type => 'string',
         },
-        nodes => get_standard_option('pve-node-list', { optional => 1 }),
+        nodes => PVE::JSONSchema::get_standard_option('pve-node-list', { optional => 1 }),
         route => {
             type => 'array',
             optional => 1,
@@ -117,7 +116,7 @@ my $defaultData = {
                 format => 'pve-sdn-static-route',
             },
         },
-        zone => get_standard_option(
+        zone => PVE::JSONSchema::get_standard_option(
             'pve-sdn-zone-id',
             {
                 completion => \&PVE::Network::SDN::Zones::complete_sdn_zone,
-- 
2.47.3





  reply	other threads:[~2026-11-26 15:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 15:28 [PATCH manager/network v3 0/7] fix #5066: make generated snat rules flushable Lukas Sichert
2026-11-26 15:28 ` Lukas Sichert [this message]
2026-11-26 15:29 ` [PATCH network v3 2/7] fix #5066: zones: factor out SNAT rule generation Lukas Sichert
2026-11-26 15:29 ` [PATCH network v3 3/7] fix #5066: zones: add helper to activate prepared SNAT rules Lukas Sichert
2026-11-26 15:29 ` [PATCH network v3 4/7] fix #5066: evpn: prepare SNAT rules in temporary chain Lukas Sichert
2026-11-26 15:29 ` [PATCH network v3 5/7] fix #5066: simple zone: " Lukas Sichert
2026-11-26 15:29 ` [PATCH network v3 6/7] fix #5066: zones: add test for generating and applying SNAT rules Lukas Sichert
2026-11-26 15:29 ` [PATCH manager v3 7/7] fix #5066: network: activate prepared SDN " Lukas Sichert

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=20261126153925.54600-2-l.sichert@proxmox.com \
    --to=l.sichert@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 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