]> git.proxmox.com Git - mirror_ifupdown2.git/commit - ifupdown/scheduler.py
Fix bug during handling multiple iface sections for same interface
authorroopa <roopa@cumulusnetworks.com>
Mon, 26 May 2014 16:03:29 +0000 (09:03 -0700)
committerroopa <roopa@cumulusnetworks.com>
Mon, 26 May 2014 16:03:29 +0000 (09:03 -0700)
commit923290bd42ec2b0c86c1673759c6c43b92bb9b19
tree05394606413873a45e02c129dca7a6cc454cd91f
parent4931e447feb03ca56932dd524b7c9edb4da53ede
Fix bug during handling multiple iface sections for same interface

Ticket: CM-1438
Reviewed By:
Testing Done: Tested ifupdown2 sanity + multiple iface sections for an
interface

- This patch fixes a few shortcomings in the multiple iface sections
for same interface (partly because i was only covering
backward compatibility cases earlier)
- Since this is a very common configuration pattern, this patch cleans
  it up
- also restructures some code
- main change is:
    before:
        for iface in ifaces:
            for op in ops:
                run op on iface

    after:
        for op in ops:
            for iface in ifaces:
                run op on iface
pkg/iface.py
pkg/ifupdownmain.py
pkg/scheduler.py