Skip to content

Commit 832ef9c

Browse files
authored
Fix bug in GCU vlanintf_validator (#2765)
What I did Fix the bug in vlanintf_validator How I did it ret will be 0 if success. Fix the statement. How to verify it E2E test
1 parent 53f611b commit 832ef9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generic_config_updater/services_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,6 @@ def vlanintf_validator(old_config, upd_config, keys):
119119
for key in deleted_keys:
120120
iface, iface_ip = key
121121
rc = os.system(f"ip neigh flush dev {iface} {iface_ip}")
122-
if not rc:
122+
if rc:
123123
return False
124124
return True

0 commit comments

Comments
 (0)