Blame SOURCES/BZ_2132570-nm-reverse-IPv6-order-before-adding-them-to-setting.patch

c98bff
From 248cd0bff6e3d030ee72b62a8a8b0e37e9f2ef80 Mon Sep 17 00:00:00 2001
c98bff
From: Fernando Fernandez Mancera <ffmancera@riseup.net>
c98bff
Date: Tue, 29 Nov 2022 23:56:13 +0100
c98bff
Subject: [PATCH] nm: reverse IPv6 order before adding them to setting
c98bff
c98bff
This is a downstream patch that needs to be applied before any other
c98bff
patch. Please check:
c98bff
c98bff
https://github.com/nmstate/nmstate/commit/2d0cfd5ad8e049f30cad10d977a5fae8bc4e6b64
c98bff
c98bff
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
c98bff
---
c98bff
 libnmstate/nm/ipv6.py | 2 +-
c98bff
 1 file changed, 1 insertion(+), 1 deletion(-)
c98bff
c98bff
diff --git a/libnmstate/nm/ipv6.py b/libnmstate/nm/ipv6.py
c98bff
index 8e01fd70..7eb3196c 100644
c98bff
--- a/libnmstate/nm/ipv6.py
c98bff
+++ b/libnmstate/nm/ipv6.py
c98bff
@@ -157,7 +157,7 @@ def _set_dynamic(setting_ip, is_dhcp, is_autoconf):
c98bff
 
c98bff
 
c98bff
 def _set_static(setting_ip, ip_addresses):
c98bff
-    for address in ip_addresses:
c98bff
+    for address in reversed(ip_addresses):
c98bff
         if iplib.is_ipv6_link_local_addr(
c98bff
             address[InterfaceIPv6.ADDRESS_IP],
c98bff
             address[InterfaceIPv6.ADDRESS_PREFIX_LENGTH],
c98bff
-- 
c98bff
2.38.1
c98bff