Subject: bug#77019: closed (Re: [bug#77019] [PATCH] machine: hetzner: Allow attaching existing public IPs.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 21 Apr 2025 22:18:04 +0000

Your bug report

#77019: [PATCH 0/1] machine: hetzner: Allow attaching existing public IPs.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
77019: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77019
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#77019] [PATCH] machine: hetzner: Allow attaching existing public IPs.
From: Ludovic Courtès <[email-masked]>
To: Sergey Trofimov <[email-masked]>
Cc: [email-masked], Maxim Cournoyer <[email-masked]>, Roman Scherer <[email-masked]>
Date: Mon, 21 Apr 2025 23:56:50 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Sergey Trofimov <[email-masked]> writes:

> * gnu/machine/hetzner.scm (hetzner-configuration): Add ipv4 and ipv6
> fields. Export accessors.
> * gnu/machine/hetzner/http.scm (hetnzer-api-primary-ips): New function.
> (<hetzner-primary-ip>): New json mapping.
> (hetzner-api-server-create): Pass IP addresses in request.
> * doc/guix.texi (Invoking guix deploy): Document it.
>
> Change-Id: I44509cc98e041762dc483e876566e79bde85b26a

Applied, thanks!

Subject: [PATCH 0/1] machine: hetzner: Allow attaching existing public IPs.
From: Sergey Trofimov <[email-masked]>
To: [email-masked]
Cc: Sergey Trofimov <[email-masked]>
Date: Fri, 14 Mar 2025 20:17:11 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

This patch allows attaching existing IP addresses to hetzner VMs. Use it when
a static IP address is necessary on the VM.

While testing it I've found out that `guile-json` doesn't support nullable
fields, so it is not possible to disable v4 or v6 addresses currently
(e.g. `(ipv4 #f)`). See https://github.com/aconchillo/guile-json/issues/87 for
details.

Sergey Trofimov (1):
  machine: hetzner: Allow attaching existing public IPs.

 doc/guix.texi                | 10 ++++++++++
 gnu/machine/hetzner.scm      | 25 +++++++++++++++++++++++++
 gnu/machine/hetzner/http.scm | 35 +++++++++++++++++++++++++++++------
 3 files changed, 64 insertions(+), 6 deletions(-)

base-commit: 9449ab3c2025820d2e6fd679fa7e34832b667ea7
-- 
2.48.1