diff --git a/network/junos/junos_config.py b/network/junos/junos_config.py index c416d0fc12f..e4a43a23210 100644 --- a/network/junos/junos_config.py +++ b/network/junos/junos_config.py @@ -132,8 +132,8 @@ def diff_config(candidate, config): elif action == 'delete': for cfg in config: - if cfg.startswith(cfgline): - updates.add(cfgline) + if cfg[4:].startswith(cfgline): + updates.add(line) return list(updates)