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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user