From: Roopa Prabhu Date: Sat, 4 Apr 2015 03:33:28 +0000 (-0700) Subject: Add config len check to iface compare X-Git-Tag: 1.2.2-1~202 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f8e2f6e283c5a6102f56d9d79f7e28db0a311689;p=mirror_ifupdown2.git Add config len check to iface compare Testing Done: Tested ifreload with steps in the bug --- diff --git a/ifupdown2/ifupdown/iface.py b/ifupdown2/ifupdown/iface.py index 79840f9..7e3f849 100644 --- a/ifupdown2/ifupdown/iface.py +++ b/ifupdown2/ifupdown/iface.py @@ -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()