1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

Only warn on ifdown of an interface who has upperifaces still around +

cleanup

Ticket: CM-1438
Reviewed By:
Testing Done: Tested ifup/ifdown sanity
This commit is contained in:
roopa
2014-03-24 06:28:08 -07:00
parent 62ddec8b52
commit fa3da4be43
2 changed files with 13 additions and 15 deletions

View File

@ -726,7 +726,7 @@ class ifupdownMain(ifupdownBase):
# If iface list is given by the caller, always check if iface
# is present
if self.validate_ifaces(ifacenames) != 0:
raise Exception('all or some interfaces not found')
raise Exception('all or some interfaces were never up')
# if iface list not given by user, assume all from config file
if not ifacenames: ifacenames = self.ifaceobjdict.keys()
# filter interfaces based on auto and allow classes