diff --git a/vlanmang/__init__.py b/vlanmang/__init__.py index 76e3129..ded4a15 100644 --- a/vlanmang/__init__.py +++ b/vlanmang/__init__.py @@ -290,8 +290,9 @@ def checkchanges(module): switchuntagged = switch.getuntagged(*vlans) untagged = getuntagged(i.vlanconf, lufun) for i in vlans: - if not _cmpbits(switchegress[i], egress[i]) or not _cmpbits(switchuntagged[i], untagged[i]): + if not _cmpbits(switchegress[i], egress[i]): res.append((switch, name, 'setegress', i, egress[i], switchegress[i])) + if not _cmpbits(switchuntagged[i], untagged[i]): res.append((switch, name, 'setuntagged', i, untagged[i], switchuntagged[i])) return res