]> git.proxmox.com Git - mirror_ifupdown2.git/commitdiff
ifupdown2: lib: dont bring down link during vni filter changes
authorRoopa Prabhu <roopa@nvidia.com>
Mon, 26 Apr 2021 04:00:36 +0000 (21:00 -0700)
committerJulien Fortin <jfortin@nvidia.com>
Thu, 1 Jul 2021 16:40:52 +0000 (18:40 +0200)
Signed-off-by: Roopa Prabhu <roopa@nvidia.com>
Signed-off-by: Julien Fortin <jfortin@nvidia.com>
ifupdown2/lib/iproute2.py

index 1ca50a7bc7a46bc1112ef0bffcad87c4b6605467..03d744bf5a3365c6e9f58b84983cbd29d7609bdb 100644 (file)
@@ -941,16 +941,12 @@ class IPRoute2(Cache, Requirements):
             rvnis_int = utils.ranges_to_ints(rvnis)
             (vnis_to_del, vnis_to_add) = utils.diff_ids(vnis_int,
                                                         rvnis_int)
-            if vnis_to_del or vnis_to_add:
-                self.link_down(vxlandev)
             if vnis_to_del:
                 self.bridge_vni_del_list(vxlandev,
                         utils.compress_into_ranges(vnis_to_del))
             if vnis_to_add:
                 self.bridge_vni_add_list(vxlandev,
                         utils.compress_into_ranges(vnis_to_add))
-            if vnis_to_del or vnis_to_add:
-                self.link_up(vxlandev)
         except Exception as e:
             self.logger.info("bridge vni show failed .. %s" % str(e))
         return None