]> git.proxmox.com Git - mirror_ifupdown2.git/commitdiff
Fix stray call to dict which was converting my ordered dict to an unordered dict
authorroopa <roopa@cumulusnetworks.com>
Thu, 8 May 2014 05:48:29 +0000 (22:48 -0700)
committerroopa <roopa@cumulusnetworks.com>
Thu, 8 May 2014 05:48:29 +0000 (22:48 -0700)
Ticket: CM-2731
Reviewed By:
Testing Done:

This was resulting in eth0 missing its first spot during interface
bringup

pkg/scheduler.py

index 824e82042e480c5b3b6e9f56f5833fe3528a3630..9bdaf24b94ba8ef5123ceafc819ff3939de965b2 100644 (file)
@@ -337,7 +337,7 @@ class ifaceScheduler():
             for ifacename in dependency_graph.keys():
                 indegrees[ifacename] = ifupdownobj.get_iface_refcnt(ifacename)
         sorted_ifacenames = graph.topological_sort_graphs_all(dependency_graph,
-                                                          dict(indegrees))
+                                                          indegrees)
         ifupdownobj.logger.debug('sorted ifacenames %s : '
                                  %str(sorted_ifacenames))