]> git.proxmox.com Git - mirror_ifupdown2.git/commitdiff
ifupdownmain: don't down vrf master in sched callback ops
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 25 Mar 2016 04:55:58 +0000 (21:55 -0700)
committerRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 25 Mar 2016 04:55:58 +0000 (21:55 -0700)
This was bringing down vrf master earlier than required
leading to ssh session hangs in case of management vrf

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
ifupdown/ifupdownmain.py

index 7eac0287e527e230043a049e1d8e38f12c629366..75ca345d0f8f32a85cc95ee9b0a86cee299d3ede 100644 (file)
@@ -140,6 +140,8 @@ class ifupdownMain(ifupdownBase):
     def run_down(self, ifaceobj):
         # Skip link sets on ifaceobjs of type 'vlan' (used for l2 attrs)
         # there is no real interface behind it
+        if ifaceobj.kind & ifaceLinkKind.VRF:
+            return
         if ifaceobj.type == ifaceType.BRIDGE_VLAN:
             return
         if (ifaceobj.addr_method and