1
0
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:
Roopa Prabhu
2015-04-03 20:33:28 -07:00
parent 1321132890
commit acf9264497

View File

@ -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()