]> git.proxmox.com Git - mirror_ifupdown2.git/commit - ifupdown2/ifupdown/ifupdownmain.py
ifreload: fix handling(downing) of builtin interfaces on changes
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 26 Feb 2016 01:10:33 +0000 (17:10 -0800)
committerRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 26 Feb 2016 23:41:35 +0000 (15:41 -0800)
commitdbc018d39d1e8d73290672211cff814d2c3ba61c
treed2dd852d44e4f0efd355355b5c72bc809439ff51
parent7b2469dbf320cfdf75c9f93867016a05d7c485e4
ifreload: fix handling(downing) of builtin interfaces on changes

Ticket: CM-8455
Review: CCR-4181
Testing: tested ifreload on builtin interface change

This patch handles removal of builtin interfaces (example swp*.100
below..which dont have iface sections) during a ifreload.

{noformat}
auto bridge
iface bridge
        bridge-vlan-aware yes
        bridge-ports swp3.100 swp15.100
{noformat}

if user changes swp15.100 to another interface and does a ifreload,
before this patch swp15.100 used to be around. This patch makes sure
swp15.100 is deleted in the process

I had to do some cleanup of flags in the process. I might have added
some extra cycles to ifreload. But i dont see an easy way to handle this
case.
ifupdown/iface.py
ifupdown/ifupdownmain.py
ifupdown/scheduler.py