all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: pve-devel@lists.proxmox.com, Stefan Hanreich <s.hanreich@proxmox.com>
Subject: [pve-devel] applied: [PATCH pve-network v2 1/8] ipam: netbox: factor out common api methods and unify error handling
Date: Mon,  7 Apr 2025 17:49:55 +0200	[thread overview]
Message-ID: <174404096640.2941344.11228195579527806476.b4-ty@proxmox.com> (raw)
In-Reply-To: <20250310085103.30549-1-s.hanreich@proxmox.com>

On Mon, 10 Mar 2025 09:50:56 +0100, Stefan Hanreich wrote:
> Create a helper method that abstracts the common code used in making
> netbox requests. Move all api_request incovations over to using the
> helper method. This saves us from writing lots of repeated code.
> 
> This also updates the helpers and introduces error checking there.
> Helpers didn't catch any errors and the invoking methods didn't as
> well. This meant that functions with $noerr set to 1 would still error
> out. We now pass $noerr to the helper functions and they behave the
> same as the parent methods. This requires some additional checks in
> the call sites of the helpers.
> 
> [...]

Applied, thanks!

[1/8] ipam: netbox: factor out common api methods and unify error handling
      commit: f5a439d194109da893d0376c2833e9dd23f2de46
[2/8] ipam: netbox: implement deleting subnets
      commit: 449e08a8fb15d2ba21936250af0c228abec8d22c
[3/8] ipam: netbox: simplify helpers
      commit: cea37c09da99adcaef1d7cf7dbbd8aa82796030d
[4/8] ipam: netbox: no conditional assignments for descriptions
      commit: 5ff8aeb080ae99230fc6d2825722f49fd0fca3c0
[5/8] ipam: netbox: add error handling to get_ips_from_mac
      commit: b673a106c5b25a5d9e2586c51be764bfb01df506
[6/8] partial fix #5496: ipam: netbox: properly return allocated ip
      commit: f36174e0722d82ea5473c17c3d901e30899fcb7b
[7/8] partial fix #5496: ipam: netbox: create / delete ip ranges for dhcp
      commit: a52a40c78b82e0646c60a28fc9919336a2cb1290
[8/8] partial fix #5496: subnet: ipam: add update_subnet hook
      commit: 1b01ad6529516790cc19b22c2c389e1c41530738


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


      parent reply	other threads:[~2025-04-07 15:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-10  8:50 [pve-devel] " Stefan Hanreich
2025-03-10  8:50 ` [pve-devel] [PATCH pve-network v2 2/8] ipam: netbox: implement deleting subnets Stefan Hanreich
2025-03-10  8:50 ` [pve-devel] [PATCH pve-network v2 3/8] ipam: netbox: simplify helpers Stefan Hanreich
2025-03-10  8:50 ` [pve-devel] [PATCH pve-network v2 4/8] ipam: netbox: no conditional assignments for descriptions Stefan Hanreich
2025-03-10  8:51 ` [pve-devel] [PATCH pve-network v2 5/8] ipam: netbox: add error handling to get_ips_from_mac Stefan Hanreich
2025-03-10  8:51 ` [pve-devel] [PATCH pve-network v2 6/8] partial fix #5496: ipam: netbox: properly return allocated ip Stefan Hanreich
2025-03-10  8:51 ` [pve-devel] [PATCH pve-network v2 7/8] partial fix #5496: ipam: netbox: create / delete ip ranges for dhcp Stefan Hanreich
2025-03-10  8:51 ` [pve-devel] [PATCH pve-network v2 8/8] partial fix #5496: subnet: ipam: add update_subnet hook Stefan Hanreich
2025-04-07 15:32 ` [pve-devel] [PATCH pve-network v2 1/8] ipam: netbox: factor out common api methods and unify error handling Hannes Duerr
2025-04-07 15:37   ` Hannes Duerr
2025-04-07 15:38   ` Thomas Lamprecht
2025-04-07 15:45     ` Thomas Lamprecht
2025-04-07 15:49 ` Thomas Lamprecht [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=174404096640.2941344.11228195579527806476.b4-ty@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=s.hanreich@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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal