]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: add missing rollback if config is invalid
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 8 Oct 2020 15:42:01 +0000 (18:42 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Sat, 10 Oct 2020 09:53:29 +0000 (12:53 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
isisd/isis_csm.c

index 929b4c26e8dd9caf8e4730b6eaf8c4ac4b7b8814..c848ed2638d852255cff837c53fd3c04aafe147d 100644 (file)
@@ -152,6 +152,7 @@ isis_csm_state_change(int event, struct isis_circuit *circuit, void *arg)
                case IF_UP_FROM_Z:
                        isis_circuit_if_add(circuit, (struct interface *)arg);
                        if (isis_circuit_up(circuit) != ISIS_OK) {
+                               isis_circuit_if_del(circuit, (struct interface *)arg);
                                flog_err(
                                        EC_ISIS_CONFIG,
                                        "Could not bring up %s because of invalid config.",