mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Add config len check to iface compare
Ticket: CM-5253 Reviewed By: sam Testing Done: Tested ifreload with steps in the bug
This commit is contained in:
@ -392,6 +392,8 @@ class iface():
|
||||
if self.addr_method != dstiface.addr_method: return False
|
||||
if self.auto != dstiface.auto: return False
|
||||
if self.classes != dstiface.classes: return False
|
||||
if len(self.config) != len(dstiface.config):
|
||||
return False
|
||||
if any(True for k in self.config if k not in dstiface.config):
|
||||
return False
|
||||
if any(True for k,v in self.config.items()
|
||||
|
Reference in New Issue
Block a user