]> git.proxmox.com Git - mirror_ifupdown2.git/commitdiff
nlcache: merge existing MTU into new netlink object (vlan/vxlan) before caching
authorJulien Fortin <jfortin@nvidia.com>
Mon, 15 Aug 2022 16:33:05 +0000 (18:33 +0200)
committerJulien Fortin <jfortin@nvidia.com>
Thu, 4 May 2023 11:21:55 +0000 (13:21 +0200)
This patch fixes the gap in the vlan and vxlan code

Signed-off-by: Julien Fortin <jfortin@nvidia.com>
ifupdown2/lib/nlcache.py

index d94ad7a3b9e2d3a65a13cbe4cdc4904c49981597..32ff44eb12370f4f44dbf56f9a132b69ee5f1423 100644 (file)
@@ -2955,7 +2955,7 @@ class NetlinkListenerWithCache(nllistener.NetlinkManagerWithListener, BaseObject
                 Link.IFLA_INFO_DATA: ifla_info_data
             })
             link.build_message(next(self.sequence), self.pid)
-            return self.tx_nlpacket_get_response_with_error_and_cache_on_ack(link)
+            return self.tx_nlpacket_get_response_with_error_and_cache_on_ack(link, ifname)
         except Exception as e:
             if "Invalid argument" in str(e) and bridge_binding is not None:
                 raise RetryCMD(cmd=" ".join(vlan_iproute2_cmd))
@@ -3052,7 +3052,7 @@ class NetlinkListenerWithCache(nllistener.NetlinkManagerWithListener, BaseObject
             Link.IFLA_INFO_DATA: info_data
         })
         link.build_message(next(self.sequence), self.pid)
-        return self.tx_nlpacket_get_response_with_error_and_cache_on_ack(link)
+        return self.tx_nlpacket_get_response_with_error_and_cache_on_ack(link, ifname)
 
     def link_add_vxlan_with_info_data_dry_run(self, ifname, info_data):
         self.log_info_ifname_dry_run(