Setting ipv6-privacy to false does not disable temporary address generation when renderer is NetworkManager

Bug #1948027 reported by Pierre-Emmanuel Le Roux
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netplan
Fix Committed
Undecided
Unassigned

Bug Description

Hello,
when renderer is NetworkManager, setting ipv6-privacy to false does not disable temporary address generation.
Netplan should explicitely disable it by setting ipv6.ip6-privacy=0 in NetworkManager's configuration.

I think this patch should fix this.

--- src/nm.c.orig 2021-10-21 16:08:07.375864085 +0200
+++ src/nm.c 2021-10-21 16:08:44.831606255 +0200
@@ -819,6 +819,8 @@
             g_key_file_set_string(kf, "ipv6", "addr-gen-mode", addr_gen_mode_str(def->ip6_addr_gen_mode));
         if (def->ip6_privacy)
             g_key_file_set_integer(kf, "ipv6", "ip6-privacy", 2);
+ else
+ g_key_file_set_integer(kf, "ipv6", "ip6-privacy", 0);
         if (def->gateway6)
             g_key_file_set_string(kf, "ipv6", "gateway", def->gateway6);
         if (def->ip6_nameservers) {

Thank you.

Revision history for this message
Lukas Märdian (slyon) wrote :

Thank you very much for this patch!

Would you mind creating a Github pull request out of this at https://github.com/canonical/netplan/pulls ?

Changed in netplan:
status: New → Triaged
Revision history for this message
Lukas Märdian (slyon) wrote :
Changed in netplan:
status: Triaged → In Progress
Lukas Märdian (slyon)
Changed in netplan:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers