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

ifupdownmain: handle more than one upperifaces

Ticket: CM-9595
Reviewed By:
Testing Done: tested with failing vrf config in CM-9595

due to same upperiface getting processed more than once,
there was an unnecessary refcount inc on the lowerdevice.
This patch aborts processing upperiface if already
processed and also adds a new debug function to
dump lower and uppper ifaces of all interfaces in the
file.
This commit is contained in:
Roopa Prabhu
2016-02-29 22:23:24 -08:00
parent 3fcb15febd
commit ccbeedcdf5
2 changed files with 29 additions and 8 deletions

View File

@@ -595,6 +595,12 @@ class iface():
else:
logger.info(indent + 'lowerdevs: None')
d = self.upperifaces
if d:
logger.info(indent + 'upperdevs: %s' %str(d))
else:
logger.info(indent + 'upperdevs: None')
logger.info(indent + 'config: ')
config = self.config
if config: